ContainsUserPath
Description
The ContainsUserPath method allows to know if a User Path already exists.
Parameters
- Name (required): The name of the User Path.
- ApiKey (optional): To authenticate the command. Required if enabled on the Controller.
REST example
POST http://localhost:7400/Design/v1/Service.svc/ContainsUserPath HTTP/1.1Accept: application/jsonContent-Type:application/jsonCache-Control:nocachePragma: nocacheUser-Agent:Java/1.7.0_10Host: localhost:7400Connection: keepaliveContent-Length:25{"d": {"Name": "my_user_path"}}Use case with Command Line Designer
java -cp "api/Common/java/*;api/Design API Client/java/*" com.neotys.rest.design.client.CommandLineDesigner -designAPIURL http://localhost:7400/Design/v1/Service.svc/ -command ContainsUserPath -Name my_user_pathUse case with Java Client Designer
import com.neotys.rest.design.client.DesignAPIClient;import com.neotys.rest.design.client.DesignAPIClientFactory;import com.neotys.rest.design.model.ContainsUserPathParams;public class Main {public static void main(String[] args) throws Exception {final String url = "http://localhost:7400/Design/v1/Service.svc";final DesignAPIClient client = DesignAPIClientFactory.newClient(url);final boolean exist = designAPIClient.containsUserPath(New ContainsUserPathParams.ContainsUserPathParamsBuilder().name("my_user_path").build());System.out.println(exist);}}Use case with C#Client
using Neotys.DesignAPI.Client;using Neotys.DesignAPI.Model;using System;namespace Design{class ContainsUserPath{static void Main(string[] args){string url = "http://localhost:7400/Design/v1/Service.svc/";IDesignAPIClient client = DesignAPIClientFactory.NewClient(url);bool exist = client.ContainsUserPath(new ContainsUserPathParamsBuilder().name("my_user_path").Build());Console.WriteLine(exist);}}}
Home