<back to all web services

CreateService

The following routes are available for this service:
POST/RestApi/apiservice/createService
ServiceBaseRequest Parameters:
NameParameterData TypeRequiredDescription
RouteformstringNo
NameformstringNo
UrlNameformstringNo
EnabledformboolNo
ApiKeyformstringNo
AccessControlAllowOriginformstringNo
AutogenerateTypesformboolNo
AccessformstringNo
TypesformIEnumerable<ContentsProxy>No
ProtocolformstringNo
ContentsProxy Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ReadOnlyformboolNo
UrlKeyformstringNo
ClrTypeformstringNo
AccessformstringNo
PropertiesformIEnumerable<PropertiesProxy>No
ChildrenformIEnumerable<ContentsProxy>No
AutogeneratePropertiesformboolNo
parentIdformstringNo
PropertiesProxy Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
PropertyTypeformstringNo
IsPersistentformboolNo
AllowSortformboolNo
AllowFilterformboolNo
IsKeyformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/apiservice/createService HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Route":"String","Name":"String","UrlName":"String","Enabled":false,"ApiKey":"String","AccessControlAllowOrigin":"String","AutogenerateTypes":false,"Access":"String","Protocol":"String"}