Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: AlertCamp Booking API
description: Service d'alertes de disponibilité SEPAQ pour le camping au Québec
version: 0.1.0
tags:
- name: Booking
paths:
/api/v1/booking/permit-inject:
get:
tags:
- Booking
summary: Get Permit Inject
description: 'The injection contract for the permit this site belongs to.
``{"permit_id": int, "recipe": {...}, "script": "..."}`` when the site is a
permit division with a measured recipe; ``recipe`` and ``script`` are NULL
for every other site, which is the signal to fall back to the provider''s
own script (the campground calendar) rather than inject nothing.'
operationId: get_permit_inject_api_v1_booking_permit_inject_get
parameters:
- name: site_id
in: query
required: true
schema:
type: string
description: Any site in the permit (a route uses night 1)
title: Site Id
description: Any site in the permit (a route uses night 1)
- name: site_ids
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Comma-separated site ids (a route's nights, in order) to resolve starting areas for
title: Site Ids
description: Comma-separated site ids (a route's nights, in order) to resolve starting areas for
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
title: Response Get Permit Inject Api V1 Booking Permit Inject Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError