Server

Server has the details of the domains and DCs through which you can access the resource.

Possible Locations

Child Elements

Attributes

Name Type Description
name
required
String Name of the server.
dc
required
String (CSV) Name of the data centre.
url
required
String Domain of the URL.
visibility String (enum) Decides who can view and use the element. The possible values are internal, private, public. The default value is public.

Example

Following are the details of the server, that we have decided to use for the trips resource.

    
copy
domains: https://travel_bureau.local.com, https://travel_bureau_qa.local.com, https://travel_bureau_test.local.com dc: US environments: development,sandbox location and value of argument for development: param and dev location and value of argument for sandbox: param and sand

As there are three domains to be added, you have to create a variable var with the possible values as travel_bureau, travel_bureau_qa and travel_bureau_test.

Following is how you have to configure this server for trips resource,

    
copy
<server name="travel_bureau_server" url="https://{var}.local.com" dc="US"> <description>Both the domains will have the same performance.</description> <variable name="var" values="travel_bureau,travel_bureau_qa,travel_bureau_test" /> <environment type="development" name="env" value="dev" location="param" /> <environment type="sandbox" name="env" value="sand" location="param" /> </server>

Last Updated 2025-05-30 16:54:59 +0530 +0530