regis

<back to all web services

CatalogsRequest

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

public class dtos
{

    public static class CatalogsRequest
    {
        
    }

    public static class CatalogsResponse
    {
        public ResponseStatus responseStatus = null;
        public ArrayList<CatalogResponse> catalogs = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CatalogsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public ArrayList<CatalogResponse> getCatalogs() { return catalogs; }
        public CatalogsResponse setCatalogs(ArrayList<CatalogResponse> value) { this.catalogs = value; return this; }
    }

    public static class CatalogResponse
    {
        public ResponseStatus responseStatus = null;
        public Integer id = null;
        public String catalog_code = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CatalogResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public Integer getId() { return id; }
        public CatalogResponse setId(Integer value) { this.id = value; return this; }
        public String getCatalogCode() { return catalog_code; }
        public CatalogResponse setCatalogCode(String value) { this.catalog_code = value; return this; }
    }

}

Java CatalogsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /Catalogs HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	catalogs: 
	[
		{
			responseStatus: 
			{
				errorCode: String,
				message: String,
				stackTrace: String,
				errors: 
				[
					{
						errorCode: String,
						fieldName: String,
						message: String,
						meta: 
						{
							String: String
						}
					}
				],
				meta: 
				{
					String: String
				}
			},
			id: 0,
			catalog_code: String
		}
	]
}