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
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"allTiers":[{"name":"String","title":"String","value":"ProgrammingLanguage"}],"allPostTypes":[{"name":"String","title":"String","value":"ProgrammingLanguage"}],"allFlagTypes":[{"name":"String","title":"String","value":"ProgrammingLanguage"}]}