All Verbs | /config |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class GetConfig implements IGet
{
}
public static class GetConfigResponse
{
public ArrayList<Option> allTiers = null;
public ArrayList<Option> allPostTypes = null;
public ArrayList<Option> allFlagTypes = null;
public ArrayList<Option> getAllTiers() { return allTiers; }
public GetConfigResponse setAllTiers(ArrayList<Option> value) { this.allTiers = value; return this; }
public ArrayList<Option> getAllPostTypes() { return allPostTypes; }
public GetConfigResponse setAllPostTypes(ArrayList<Option> value) { this.allPostTypes = value; return this; }
public ArrayList<Option> getAllFlagTypes() { return allFlagTypes; }
public GetConfigResponse setAllFlagTypes(ArrayList<Option> value) { this.allFlagTypes = value; return this; }
}
@DataContract
public static class Option
{
@DataMember(Name="name")
@SerializedName("name")
public String name = null;
@DataMember(Name="title")
@SerializedName("title")
public String title = null;
@DataMember(Name="value")
@SerializedName("value")
public TechnologyTier value = null;
public String getName() { return name; }
public Option setName(String value) { this.name = value; return this; }
public String getTitle() { return title; }
public Option setTitle(String value) { this.title = value; return this; }
public TechnologyTier getValue() { return value; }
public Option setValue(TechnologyTier value) { this.value = value; return this; }
}
public static enum TechnologyTier
{
ProgrammingLanguage,
Client,
Http,
Server,
Data,
SoftwareInfrastructure,
OperatingSystem,
HardwareInfrastructure,
ThirdPartyServices;
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=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"}]}