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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"allTiers":[{"name":"String","title":"String","value":"ProgrammingLanguage"}],"allPostTypes":[{"name":"String","title":"String","value":"ProgrammingLanguage"}],"allFlagTypes":[{"name":"String","title":"String","value":"ProgrammingLanguage"}]}