All Verbs | /content/item/{Country}/{Lang}/{Section} | ||
---|---|---|---|
All Verbs | /content/item/{Country}/{Lang}/{Section}/{ItemCode} | ||
GET | /content/item |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AlbaApi.ServiceModel
Imports TasSyd.Model
Imports TasSyd.Model.Base
Namespace Global
Namespace AlbaApi.ServiceModel
Public Partial Class SectionContentItemReq
Public Overridable Property Country As String
Public Overridable Property Lang As String
Public Overridable Property Section As String
Public Overridable Property ItemId As String
Public Overridable Property ItemCode As String
End Class
End Namespace
Namespace TasSyd.Model
Public Partial Class Content
Inherits Entity
Public Sub New()
Elements = New Dictionary(Of String, String)
End Sub
Public Overridable Property Section As String
Public Overridable Property ItemId As String
Public Overridable Property ItemCode As String
Public Overridable Property Country As String
Public Overridable Property Lang As String
Public Overridable Property App As String
Public Overridable Property CompanyId As String
Public Overridable Property Company As String
Public Overridable Property Elements As Dictionary(Of String, 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
VB.NET SectionContentItemReq DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /content/item/{Country}/{Lang}/{Section} HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
country: String,
lang: String,
section: String,
itemId: String,
itemCode: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { section: String, itemId: String, itemCode: String, country: String, lang: String, app: String, companyId: String, company: String, elements: { String: String }, id: String }