Get list of calendars
get
/PASService/rest/services/calendars
Get all the system dates for the current year for all the available calendars
Request
Query Parameters
-
q(optional): string
Search Parameter
Response
Supported Media Types
- application/json
200 Response
successful operation
Root Schema : schema
Type:
object
Examples
This example describes how to get all the system dates for the current year for all the available calendars.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/calendars"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "count" : 365, "offset" : 0, "limit" : 365, "calendars" : [ { "links" : [ { "href" : "http://server:port/PASService/rest/services/codes?codeName=Calendar&codeValue=01", "rel" : "codes/calendarCode", "mediaType" : "application/json", "method" : "GET" } ], "systemDate" : "2015-12-31T00:00:00Z", "businessDayIndicator" : "N", "currentIndicator" : "N", "monthEndIndicator" : "N", "quarterEndIndicator" : "N", "yearEndIndicator" : "N", "nextSystemDate" : "2016-01-01T00:00:00Z", "previousSystemDate" : "2015-12-30T00:00:00.000Z", "calendarCode" : "01", "systemDateId" : "D1B693A8-983B-4C75-BD89-22B8B605AD9F" }, { "links" : [ { "href" : "http://server:port/PASService/rest/services/codes?codeName=Calendar&codeValue=01", "rel" : "codes/calendarCode", "mediaType" : "application/json", "method" : "GET" } ], "systemDate" : "2015-12-30T00:00:00Z", "businessDayIndicator" : "N", "currentIndicator" : "N", "monthEndIndicator" : "N", "quarterEndIndicator" : "N", "yearEndIndicator" : "N", "nextSystemDate" : "2015-12-31T00:00:00Z", "previousSystemDate" : "2015-12-29T00:00:00.000Z", "calendarCode" : "01", "systemDateId" : "F48B1243-A26B-445E-A80D-4C9BF6A9ABB3" } "