Required role: | REGISUserRole |
POST | /Concentrations |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ConcentrationsRequest
{
}
public static class ConcentrationsResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<ConcentrationResponse> concentrations = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ConcentrationsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<ConcentrationResponse> getConcentrations() { return concentrations; }
public ConcentrationsResponse setConcentrations(ArrayList<ConcentrationResponse> value) { this.concentrations = value; return this; }
}
public static class ConcentrationResponse
{
public ResponseStatus responseStatus = null;
public Integer id = null;
public String concentration_code = null;
public String concentration_name = null;
public Boolean is_active = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ConcentrationResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getId() { return id; }
public ConcentrationResponse setId(Integer value) { this.id = value; return this; }
public String getConcentrationCode() { return concentration_code; }
public ConcentrationResponse setConcentrationCode(String value) { this.concentration_code = value; return this; }
public String getConcentrationName() { return concentration_name; }
public ConcentrationResponse setConcentrationName(String value) { this.concentration_name = value; return this; }
public Boolean getIsActive() { return is_active; }
public ConcentrationResponse setIsActive(Boolean value) { this.is_active = value; return this; }
}
}
Java ConcentrationsRequest 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 /Concentrations 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"}},"concentrations":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"id":0,"concentration_code":"String","concentration_name":"String","is_active":false}]}