| Requires any of the roles: | Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/DocumentType/ |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DocumentTypeRequest
{
}
public static class DocumentTypeResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<DocumentType> DocumentTypes = new ArrayList<DocumentType>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DocumentTypeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<DocumentType> getDocumentTypes() { return DocumentTypes; }
public DocumentTypeResponse setDocumentTypes(ArrayList<DocumentType> value) { this.DocumentTypes = value; return this; }
}
public static class DocumentType
{
public Integer Sort = null;
public String TypeName = null;
public Integer getSort() { return Sort; }
public DocumentType setSort(Integer value) { this.Sort = value; return this; }
public String getTypeName() { return TypeName; }
public DocumentType setTypeName(String value) { this.TypeName = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/DocumentType/ HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"DocumentTypes":[{"Sort":0,"TypeName":"String"}]}