sfgboxapi

<back to all web services

SystemEntitiesAdd

Requires Authentication
The following routes are available for this service:
POST/system_entities
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class SystemEntitiesAdd
    {
        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public String entity = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public String longDescription = null;
        
        public String getEntity() { return entity; }
        public SystemEntitiesAdd setEntity(String value) { this.entity = value; return this; }
        public String getLongDescription() { return longDescription; }
        public SystemEntitiesAdd setLongDescription(String value) { this.longDescription = value; return this; }
    }

    public static class SystemEntitiesAddResponse
    {
        @DataMember(Order=2)
        public String entity = null;

        @DataMember(Order=3)
        public String longDescription = null;

        @DataMember(Order=5)
        public ResponseStatus responseStatus = null;
        
        public String getEntity() { return entity; }
        public SystemEntitiesAddResponse setEntity(String value) { this.entity = value; return this; }
        public String getLongDescription() { return longDescription; }
        public SystemEntitiesAddResponse setLongDescription(String value) { this.longDescription = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public SystemEntitiesAddResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java SystemEntitiesAdd DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /system_entities HTTP/1.1 
Host: api.sfgtec.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"entity":"String","longDescription":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"entity":"String","longDescription":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}