All Verbs | /faq/{ListId}/{Country}/{Code} |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AlbaApi.ServiceModel
Imports AlbaApi.Model
Imports TasSyd.Model.Base
Namespace Global
Namespace AlbaApi.Model
Public Partial Class ListItem
Inherits Entity
Public Overridable Property ListId As String
Public Overridable Property Country As String
Public Overridable Property RelatedId As String
Public Overridable Property Code As String
Public Overridable Property Custom As String
End Class
End Namespace
Namespace AlbaApi.ServiceModel
Public Partial Class ListItemGetReq
Public Overridable Property ListId As String
Public Overridable Property Country As String
Public Overridable Property Code As String
End Class
End Namespace
Namespace TasSyd.Model.Base
Public Partial Class Entity
Implements IEntity
Public Overridable Property Id As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /faq/{ListId}/{Country}/{Code} HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"listId":"String","country":"String","code":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"listId":"String","country":"String","relatedId":"String","code":"String","custom":"String","id":"String"}