GET | /config |
---|
namespace AlbaApi.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Entity() =
member val Id:String = null with get,set
[<AllowNullLiteral>]
type Country() =
member val Name:String = null with get,set
member val Languages:Dictionary<String, String> = new Dictionary<String, String>() with get,set
[<AllowNullLiteral>]
type ListItem() =
inherit Entity()
member val ListId:String = null with get,set
member val Country:String = null with get,set
member val RelatedId:String = null with get,set
member val Code:String = null with get,set
member val Custom:String = null with get,set
[<AllowNullLiteral>]
type SiteSection() =
member val Route:String = null with get,set
member val Public:Boolean = new Boolean() with get,set
member val Parent:String = null with get,set
member val Roles:Int32 = new Int32() with get,set
member val HideFrom:ResizeArray<String> = new ResizeArray<String>() with get,set
member val Order:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type Configuration() =
inherit Entity()
member val Category:String = null with get,set
member val Countries:Dictionary<String, Country> = new Dictionary<String, Country>() with get,set
member val ListItems:ResizeArray<ListItem> = new ResizeArray<ListItem>() with get,set
member val ListRelationships:Dictionary<String, String> = new Dictionary<String, String>() with get,set
member val SectionElements:Dictionary<String, List<String>> = new Dictionary<String, List<String>>() with get,set
member val SiteStructure:Dictionary<String, SiteSection> = new Dictionary<String, SiteSection>() with get,set
member val Version:Int32 = new Int32() with get,set
member val CreatedBy:String = null with get,set
member val DateCreated:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val UpdatedBy:String = null with get,set
member val DateUpdated:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type ConfigurationReq() =
class end
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.
GET /config HTTP/1.1 Host: hcbtas-q-albamfs-api.azurewebsites.net Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <Configuration xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Model"> <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id> <Category>String</Category> <Countries xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringCountryFNLs6TVB> <d2p1:Key>String</d2p1:Key> <d2p1:Value> <Languages> <d2p1:KeyValueOfstringstring> <d2p1:Key>String</d2p1:Key> <d2p1:Value>String</d2p1:Value> </d2p1:KeyValueOfstringstring> </Languages> <Name>String</Name> </d2p1:Value> </d2p1:KeyValueOfstringCountryFNLs6TVB> </Countries> <CreatedBy>String</CreatedBy> <DateCreated>0001-01-01T00:00:00</DateCreated> <DateUpdated>0001-01-01T00:00:00</DateUpdated> <ListItems> <ListItem> <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id> <Code>String</Code> <Country>String</Country> <Custom>String</Custom> <ListId>String</ListId> <RelatedId>String</RelatedId> </ListItem> </ListItems> <ListRelationships xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>String</d2p1:Key> <d2p1:Value>String</d2p1:Value> </d2p1:KeyValueOfstringstring> </ListRelationships> <SectionElements xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> <d2p1:Key>String</d2p1:Key> <d2p1:Value> <d2p1:string>String</d2p1:string> </d2p1:Value> </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1> </SectionElements> <SiteStructure xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringSiteSectionFNLs6TVB> <d2p1:Key>String</d2p1:Key> <d2p1:Value> <HideFrom> <d2p1:string>String</d2p1:string> </HideFrom> <Order>0</Order> <Parent>String</Parent> <Public>false</Public> <Roles>0</Roles> <Route>String</Route> </d2p1:Value> </d2p1:KeyValueOfstringSiteSectionFNLs6TVB> </SiteStructure> <UpdatedBy>String</UpdatedBy> <Version>0</Version> </Configuration>