Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
calendar-api
Advanced tools
* [Calendars](#calendars) * [Availability](#availabilty) * [Swagger Docs](#swagger-docs) * [Postman](#postman)
Before availablility can be set, there must be a calendar created. The calendar contains the following object:
{
"calendarId": {{shortId}},
"calendarType": "NONE",
"sellMode": "NONE"
}
['INVENTORY', 'CONFIRMATION_METHOD']
With a default of INVENTORY
[AVAILABLE', 'UNAVAILABLE', 'CALL_AND_REQUEST']
with a default of UNAVAILABLE
{{host}} is https://portal-dev.leisurelink.com or https://portal.leisurelink.com
{{host}}/calendar-api/v1/healthcheck
Sample Response (200):
{
"version": "calendar-api 1.0.3",
"Inventory Round Trip": "0s 28.389224ms",
"Calendar Round Trip": "0s 28.722085ms"
}
There are two ways to create a Calendar, with the preferred way to be with a PUT. The PUT will overwrite any previous data, where the POST will return a 409
if there is already a calendar object created with the supplied Id.
{{host}}/calendar-api/v1/en-US/calendars/{{calendarId}}
Sample Request:
{
"calendarType": "INVENTORY",
"sellMode": "UNAVAILABLE"
}
Responses:
400
- For errors.200
- For a success{{host}}/calendar-api/v1/en-US/calendars
Sample Request:
{
"calendarId": {{shortId}},
"calendarType": "INVENTORY",
"sellMode": "UNAVAILABLE"
}
Responses:
409
- Is returned if the calendar already exists200
- For a success{{host}}/calendar-api/v1/en-US/calendars/{calendarId}
404
- If the calendarId does not exits200
- For a success{{host}}/calendar-api/v1/en-US/calendars/{calendarId}
404
- If the calendarId does not exits200
- For a success{{host}}/calendar-api/v1/en-US/calendars/{calendarId}
404
- If the calendarId does not exits204
- For a success{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability-check?begin=2016-03-11&end=2016-03-20
404
- If the calendarId does not exist
400
- Validation Errors
200
- Success
{
available: 0
}
Note - This returns the Math.Max across all days in the range. If there is no availability for a day in the range, the available will be returned as 0.
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability/{date}
404
- If the calendarId does not exits
400
- Validation Errors
200
- For a success
{
"sold": 0,
"allocated": 6,
"date": "2016-01-03",
"available": 6
}
Note - If there is not availability for the given calendar/date combo, a default availability object will be returned. The default availability will have the allocated as null
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability?begin={begin}&end={end}
404
- If the calendarId does not exits
400
- Validation Errors
200
- For a success
[
{
"sold": 0,
"allocated": 6,
"date": "2016-01-01",
"available": 6
},
{
"sold": 0,
"allocated": 6,
"date": "2016-01-03",
"available": 6
}
]
Note - If there is not availability for the given calendar/date combo, a default availability object will be returned. The default availability will have the allocated as null
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability/{date}
Request Body:
{
"allocated": 6
}
Responses:
404
- If the calendarId does not exits
400
- Validation errors.
200
- For a success
{
"sold": 0,
"allocated": 6,
"date": "2016-01-03",
"available": 6
}
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability
Request Body:
[
{
"date": "2016-03-11",
"allocated": 4
},
{
"date": "2016-03-12",
"allocated": 4
}
]
Responses:
404
- If the calendarId does not exits
400
- Validation Errors
400
- Duplicate Days
200
- For a success
[
{
"sold": 0,
"allocated": 6,
"date": "2016-01-01",
"available": 6
},
{
"sold": 0,
"allocated": 6,
"date": "2016-01-03",
"available": 6
}
]
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability
Request Body:
[
{
"begin": "2016-03-11",
"end": "2016-03-20",
"availability": {
"allocated": 2
}
},
{
"begin": "2016-03-24",
"end": "2016-03-30",
"availability": {
"allocated": 3
}
}
]
Responses:
404
- If the calendarId does not exits
400
- Validation Errors
400
- Duplicate Days
200
- For a success
[
{
"sold": 0,
"allocated": 6,
"date": "2016-01-01",
"available": 6
},
{
"sold": 0,
"allocated": 6,
"date": "2016-01-03",
"available": 6
}
]
{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability/{date}
404
- If the calendarId does not exits400
- Validation Errors.204
- For a success{{host}}/calendar-api/v1/en-US/calendars/{calendarId}/availability?begin={begin}&end={end}
404
- If the calendarId does not exits400
- Validation Errors204
- For a successIn the Leisurelink Postman library (you must be invited) there is a collection called calendar-api
FAQs
* [Calendars](#calendars) * [Availability](#availabilty) * [Swagger Docs](#swagger-docs) * [Postman](#postman)
The npm package calendar-api receives a total of 2 weekly downloads. As such, calendar-api popularity was classified as not popular.
We found that calendar-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.