Required role: | REGISUserRole |
POST | /AcademicCredentialStatuses |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AcademicCredentialStatusesRequest
{
}
public static class AcademicCredentialStatusesResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<AcademicCredentialStatusResponse> academicCredentialStatuses = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AcademicCredentialStatusesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<AcademicCredentialStatusResponse> getAcademicCredentialStatuses() { return academicCredentialStatuses; }
public AcademicCredentialStatusesResponse setAcademicCredentialStatuses(ArrayList<AcademicCredentialStatusResponse> value) { this.academicCredentialStatuses = value; return this; }
}
public static class AcademicCredentialStatusResponse
{
public ResponseStatus responseStatus = null;
public Integer id = null;
public String status_code = null;
public String status_name = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public AcademicCredentialStatusResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getId() { return id; }
public AcademicCredentialStatusResponse setId(Integer value) { this.id = value; return this; }
public String getStatusCode() { return status_code; }
public AcademicCredentialStatusResponse setStatusCode(String value) { this.status_code = value; return this; }
public String getStatusName() { return status_name; }
public AcademicCredentialStatusResponse setStatusName(String value) { this.status_name = value; return this; }
}
}
Java AcademicCredentialStatusesRequest DTOs
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 /AcademicCredentialStatuses HTTP/1.1
Host: data.regent-college.edu
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"}},"academicCredentialStatuses":[{"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"}]}