AlbaApi

<back to all web services

AdminAppReq

The following routes are available for this service:
All Verbs/admin/app
All Verbs/admin/app/{Country}
All Verbs/admin/app/{Country}/{Lang}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AlbaApi.ServiceModel
Imports AlbaApi.Application.DTOs
Imports AlbaApi.Model
Imports TasSyd.Model.Base
Imports TasSyd.Model
Imports TasSyd.Model.Enums

Namespace Global

    Namespace AlbaApi.Application.DTOs

        Public Partial Class AdminAppData
            Public Sub New()
                SiteStructure = New Dictionary(Of String, SiteSection)
                SectionElements = New Dictionary(Of String, List(Of String))
                ListRelationships = New Dictionary(Of String, String)
                ListItems = New List(Of ListItem)
                Countries = New Dictionary(Of String, Country)
                Content = New List(Of Content)
                ScriptTrackerRecords = New List(Of ScriptTracker)
            End Sub

            Public Overridable Property SiteStructure As Dictionary(Of String, SiteSection)
            Public Overridable Property SectionElements As Dictionary(Of String, List(Of String))
            Public Overridable Property ListRelationships As Dictionary(Of String, String)
            Public Overridable Property ListItems As List(Of ListItem)
            Public Overridable Property Countries As Dictionary(Of String, Country)
            Public Overridable Property Content As List(Of Content)
            Public Overridable Property User As User
            Public Overridable Property ScriptTrackerRecords As List(Of ScriptTracker)
            Public Overridable Property Configurations As IEnumerable(Of Configuration)
        End Class
    End Namespace

    Namespace AlbaApi.Model

        Public Partial Class Configuration
            Inherits Entity
            Public Sub New()
                Countries = New Dictionary(Of String, Country)
                ListItems = New List(Of ListItem)
                ListRelationships = New Dictionary(Of String, String)
                SectionElements = New Dictionary(Of String, List(Of String))
                SiteStructure = New Dictionary(Of String, SiteSection)
            End Sub

            Public Overridable Property Category As String
            Public Overridable Property Countries As Dictionary(Of String, Country)
            Public Overridable Property ListItems As List(Of ListItem)
            Public Overridable Property ListRelationships As Dictionary(Of String, String)
            Public Overridable Property SectionElements As Dictionary(Of String, List(Of String))
            Public Overridable Property SiteStructure As Dictionary(Of String, SiteSection)
            Public Overridable Property Version As Integer
            Public Overridable Property CreatedBy As String
            Public Overridable Property DateCreated As Nullable(Of Date)
            Public Overridable Property UpdatedBy As String
            Public Overridable Property DateUpdated As Nullable(Of Date)
        End Class

        Public Partial Class Country
            Public Sub New()
                Languages = New Dictionary(Of String, String)
            End Sub

            Public Overridable Property Name As String
            Public Overridable Property Languages As Dictionary(Of String, String)
        End Class

        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

        Public Partial Class ScriptTracker
            Inherits Entity
            Public Overridable Property Sprint As String
            Public Overridable Property Country As String
            Public Overridable Property Language As String
            Public Overridable Property Section As String
            Public Overridable Property ItemCode As String
            Public Overridable Property Element As String
            Public Overridable Property Value As String
            Public Overridable Property IsFromMerge As Boolean
        End Class

        Public Partial Class SiteSection
            Public Sub New()
                HideFrom = New List(Of String)
            End Sub

            Public Overridable Property Route As String
            Public Overridable Property Public As Boolean
            Public Overridable Property Parent As String
            Public Overridable Property Roles As Integer
            Public Overridable Property HideFrom As List(Of String)
            Public Overridable Property Order As Integer
        End Class

        Public Partial Class User
            Public Overridable Property Roles As Roles
        End Class
    End Namespace

    Namespace AlbaApi.ServiceModel

        Public Partial Class AdminAppReq
            Public Overridable Property Country As String
            Public Overridable Property Lang 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

    Namespace TasSyd.Model.Enums

        <Flags>
        Public Enum Roles
            None = 0
            Employee = 1
            Member = 2
            Employer = 4
            Broker = 8
            Developer = 16
            SysAdmin = 32
        End Enum
    End Namespace
End Namespace

VB.NET AdminAppReq DTOs

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

HTTP + XML

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

POST /admin/app HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<AdminAppReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.ServiceModel">
  <Country>String</Country>
  <Lang>String</Lang>
</AdminAppReq>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AdminAppData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.Application.DTOs">
  <Configurations xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model" i:nil="true" />
  <Content xmlns:d2p1="http://schemas.datacontract.org/2004/07/TasSyd.Model">
    <d2p1:Content>
      <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id>
      <d2p1:App>String</d2p1:App>
      <d2p1:Company>String</d2p1:Company>
      <d2p1:CompanyId>String</d2p1:CompanyId>
      <d2p1:Country>String</d2p1:Country>
      <d2p1:Elements xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Elements>
      <d2p1:ItemCode>String</d2p1:ItemCode>
      <d2p1:ItemId>String</d2p1:ItemId>
      <d2p1:Lang>String</d2p1:Lang>
      <d2p1:Section>String</d2p1:Section>
    </d2p1:Content>
  </Content>
  <Countries xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringCountryFNLs6TVB>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
        <d4p1:Languages>
          <d2p1:KeyValueOfstringstring>
            <d2p1:Key>String</d2p1:Key>
            <d2p1:Value>String</d2p1:Value>
          </d2p1:KeyValueOfstringstring>
        </d4p1:Languages>
        <d4p1:Name>String</d4p1:Name>
      </d2p1:Value>
    </d2p1:KeyValueOfstringCountryFNLs6TVB>
  </Countries>
  <ListItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
    <d2p1:ListItem>
      <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id>
      <d2p1:Code>String</d2p1:Code>
      <d2p1:Country>String</d2p1:Country>
      <d2p1:Custom>String</d2p1:Custom>
      <d2p1:ListId>String</d2p1:ListId>
      <d2p1:RelatedId>String</d2p1:RelatedId>
    </d2p1: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>
  <ScriptTrackerRecords xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
    <d2p1:ScriptTracker>
      <Id xmlns="http://schemas.datacontract.org/2004/07/TasSyd.Model.Base">String</Id>
      <d2p1:Country>String</d2p1:Country>
      <d2p1:Element>String</d2p1:Element>
      <d2p1:IsFromMerge>false</d2p1:IsFromMerge>
      <d2p1:ItemCode>String</d2p1:ItemCode>
      <d2p1:Language>String</d2p1:Language>
      <d2p1:Section>String</d2p1:Section>
      <d2p1:Sprint>String</d2p1:Sprint>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:ScriptTracker>
  </ScriptTrackerRecords>
  <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 xmlns:d4p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
        <d4p1:HideFrom>
          <d2p1:string>String</d2p1:string>
        </d4p1:HideFrom>
        <d4p1:Order>0</d4p1:Order>
        <d4p1:Parent>String</d4p1:Parent>
        <d4p1:Public>false</d4p1:Public>
        <d4p1:Roles>0</d4p1:Roles>
        <d4p1:Route>String</d4p1:Route>
      </d2p1:Value>
    </d2p1:KeyValueOfstringSiteSectionFNLs6TVB>
  </SiteStructure>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/AlbaApi.Model">
    <d2p1:Roles>None</d2p1:Roles>
  </User>
</AdminAppData>