TechStacks!

<back to all web services

GetConfig

Site
The following routes are available for this service:
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;
    }

}

Java 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>