NAV

<back to all web services

RegionGetList

DomainAPI|Regions
The following routes are available for this service:
GET/regions
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RegionGetList implements IGet
    {
        
    }

    public static class RegionGetListResponse extends GetListResponse<RegionViewModel>
    {
        
    }

    public static class GetListResponse<TEntity>
    {
        public ArrayList<TEntity> items = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<TEntity> getItems() { return items; }
        public GetListResponse<TEntity> setItems(ArrayList<TEntity> value) { this.items = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetListResponse<TEntity> setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class RegionViewModel
    {
        public String regionId = null;
        public String regionDescription = null;
        
        public String getRegionId() { return regionId; }
        public RegionViewModel setRegionId(String value) { this.regionId = value; return this; }
        public String getRegionDescription() { return regionDescription; }
        public RegionViewModel setRegionDescription(String value) { this.regionDescription = value; return this; }
    }

}

Java RegionGetList 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.

GET /regions HTTP/1.1 
Host: extensions.avon.ca 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			regionId: String,
			regionDescription: String
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}