TechStacks!

<back to all web services

GetConfig

Site
The following routes are available for this service:
All Verbs/config
namespace TechStacks.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type TechnologyTier =
        | ProgrammingLanguage = 0
        | Client = 1
        | Http = 2
        | Server = 3
        | Data = 4
        | SoftwareInfrastructure = 5
        | OperatingSystem = 6
        | HardwareInfrastructure = 7
        | ThirdPartyServices = 8

    [<DataContract>]
    [<AllowNullLiteral>]
    type Option() = 
        [<DataMember(Name="name")>]
        member val Name:String = null with get,set

        [<DataMember(Name="title")>]
        member val Title:String = null with get,set

        [<DataMember(Name="value")>]
        member val Value:Nullable<TechnologyTier> = new Nullable<TechnologyTier>() with get,set

    [<AllowNullLiteral>]
    type GetConfigResponse() = 
        member val AllTiers:ResizeArray<Option> = null with get,set
        member val AllPostTypes:ResizeArray<Option> = null with get,set
        member val AllFlagTypes:ResizeArray<Option> = null with get,set

    [<AllowNullLiteral>]
    type GetConfig() = 
        interface IGet

F# GetConfig 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 /config HTTP/1.1 
Host: techstacks.io 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<GetConfigResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel">
  <AllFlagTypes>
    <Option>
      <name>String</name>
      <title>String</title>
      <value>ProgrammingLanguage</value>
    </Option>
  </AllFlagTypes>
  <AllPostTypes>
    <Option>
      <name>String</name>
      <title>String</title>
      <value>ProgrammingLanguage</value>
    </Option>
  </AllPostTypes>
  <AllTiers>
    <Option>
      <name>String</name>
      <title>String</title>
      <value>ProgrammingLanguage</value>
    </Option>
  </AllTiers>
</GetConfigResponse>