Required role: | REGISUserRole |
POST | /ProgramStatuses |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProgramStatusesRequest
{
}
public static class ProgramStatusesResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<ProgramStatusResponse> programStatuses = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ProgramStatusesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<ProgramStatusResponse> getProgramStatuses() { return programStatuses; }
public ProgramStatusesResponse setProgramStatuses(ArrayList<ProgramStatusResponse> value) { this.programStatuses = value; return this; }
}
public static class ProgramStatusResponse
{
public ResponseStatus responseStatus = null;
public Integer id = null;
public String status_code = null;
public String status_name = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ProgramStatusResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getId() { return id; }
public ProgramStatusResponse setId(Integer value) { this.id = value; return this; }
public String getStatusCode() { return status_code; }
public ProgramStatusResponse setStatusCode(String value) { this.status_code = value; return this; }
public String getStatusName() { return status_name; }
public ProgramStatusResponse setStatusName(String value) { this.status_name = value; return this; }
}
}
Java ProgramStatusesRequest DTOs
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 /ProgramStatuses HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"programStatuses":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"id":0,"status_code":"String","status_name":"String"}]}