PUT | /RestApi/apiservice/updateService/{OldUrlName} |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class UpdateService : ServiceBaseRequest()
{
var OldUrlName:String? = null
}
open class ServiceBaseRequest
{
var Route:String? = null
var Name:String? = null
var UrlName:String? = null
var Enabled:Boolean? = null
var ApiKey:String? = null
var AccessControlAllowOrigin:String? = null
var AutogenerateTypes:Boolean? = null
var Access:String? = null
var Types:ArrayList<ContentsProxy> = ArrayList<ContentsProxy>()
var Protocol:String? = null
}
open class ContentsProxy
{
var Name:String? = null
var ReadOnly:Boolean? = null
var UrlKey:String? = null
var ClrType:String? = null
var Access:String? = null
var Properties:ArrayList<PropertiesProxy> = ArrayList<PropertiesProxy>()
var Children:ArrayList<ContentsProxy> = ArrayList<ContentsProxy>()
var AutogenerateProperties:Boolean? = null
var parentId:String? = null
}
open class PropertiesProxy
{
var Name:String? = null
var PropertyType:String? = null
var IsPersistent:Boolean? = null
var AllowSort:Boolean? = null
var AllowFilter:Boolean? = null
var IsKey:Boolean? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /RestApi/apiservice/updateService/{OldUrlName} HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Web.Api.Web.Services.Dto.Requests">
<Access>String</Access>
<AccessControlAllowOrigin>String</AccessControlAllowOrigin>
<ApiKey>String</ApiKey>
<AutogenerateTypes>false</AutogenerateTypes>
<Enabled>false</Enabled>
<Name>String</Name>
<Protocol>String</Protocol>
<Route>String</Route>
<Types xmlns:d2p1="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Web.Api.Web.Services.Dto.Responses" i:nil="true" />
<UrlName>String</UrlName>
<OldUrlName>String</OldUrlName>
</UpdateService>