Ticketing_Holiday
Ticket holiday.
Holidays
- Holidays Manage
GET ticketing/holidays
GET ticketing/holidays/{id}
POST ticketing/holidays
PUT ticketing/holidays/{id}
DELETE ticketing/holidays/{id}
Model
Ticketing_Holiday JSON Format
Ticketing_Holiday is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
guid | Id of the holiday. |
title |
string | Name of the holiday. |
date |
datetime | Holiday date. |
Endpoint
Get the list of Holidays
GET ticketing/holidays
Example
Sample Request:
curl https://api15.comm100.io/v4/ticketing/holidays \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Get a single Ticketing_Holiday
GET ticketing/holidays/{id}
Example
Sample Request:
curl https://api15.comm100.io/v4/ticketing/holidays/31cb2663-cf09-4852-a3cd-f412da17d731 \
-X
'GET'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 200 OK
Create a new Ticketing_Holiday
POST ticketing/holidays
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
title |
string | body | yes | Name of the holiday. |
date |
datetime | body | yes | Holiday date. |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/ticketing/holidays \
-X
'POST'
\
-H
'Authorization: Bearer {access_token}'
\
-H
'Content-Type: application/json'
\
-D
'{"title":"test holiday","date":"2021-05-10"}'
Response:
HTTP/1.1 201 Created
Update the Ticketing_Holiday
PUT ticketing/holidays/{id}
Parameters:
Name | Type | In | Required | Description |
---|---|---|---|---|
title |
string | body | yes | Name of the holiday. |
date |
datetime | body | yes | Holiday date. |
Response:
Example
Sample Request:
curl https://api15.comm100.io/v4/ticketing/holidays/31cb2663-cf09-4852-a3cd-f412da17d731 \
-X
'PUT'
\
-H
'Authorization: Bearer {access_token}'
\
-H
'Content-Type: application/json'
\
-D
'{"title":"test holiday","date":"2021-05-10"}'
Response:
HTTP/1.1 200 OK
Remove the Ticketing_Holiday
DELETE ticketing/holidays/{id}
Parameters:
No Parameters
Response:
No Content
Example
Sample Request:
curl https://api15.comm100.io/v4/ticketing/holidays/31cb2663-cf09-4852-a3cd-f412da17d731 \
-X
'DELETE'
\
-H
'Authorization: Bearer {access_token}'
\
Response:
HTTP/1.1 204 No Content