Get calendar by calendar code
get
/PASService/rest/services/calendars/{calendarCode}
Get all the system dates for the current year based on the specified calendar code
Request
Path Parameters
-
calendarCode: string
Calendar Code
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get all the system dates for the current year based on the specified calendar code.
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/calendarCode/01"
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" }"