Pagination


Some endpoints are paginated, because they provides many data. Other provides optional pagination. You can ask for pagination on your requests, by providing the GET parameters page and per_page (when it’s available). The meta-data about pagination will be returned in the headers, following RFC-5988 standard for web linking. It uses headers Link, Total and Per-Page.

Authentication


Authentication is done using Authorization header. You just have to set header Authorization to Token token=YOUR_TOKEN for every request.

Json


Depending on your client, you may have to set header Accept: application/json for every request, otherwise some clients may request html by default which will result in error.

Amounts


Everywhere in the OpenAPI amounts are reported in cents. For exemple, if you get { "amount" : 1000 }, from the OpenAPI, this means that the price is 10 € (or whatever your currency is).

Resources

Accounting
Accounting lines

Resource Description
GET /open_api/v1/accounting Accounting lines

Availabilities
Availabilities

Resource Description
GET /open_api/v1/availabilities Availabilities index

Bookable machines
Bookable machines

Resource Description
GET /open_api/v1/bookable_machines Bookable machines index

Events
Events

Resource Description
GET /open_api/v1/events Events index

Invoices
Invoices

Resource Description
GET /open_api/v1/invoices Invoices index
GET /open_api/v1/invoices/:id/download Download an invoice

Machines
Machines

Resource Description
GET /open_api/v1/machines Machines index
POST /open_api/v1/machines Create a machine
PATCH /open_api/v1/machines/:id Update a machine
GET /open_api/v1/machines/:id Show a machine
DELETE /open_api/v1/machines/:id Delete a machine

Plan categories
Plans categories

Resource Description
GET /open_api/v1/plan_categories Plans categories index

Plans
Plans

Resource Description
GET /open_api/v1/plans Plans index
GET /open_api/v1/plans/:id Shows a plan

Prices
Prices

Resource Description
GET /open_api/v1/prices Prices index

Reservations
Reservations

Resource Description
GET /open_api/v1/reservations Reservations index

Spaces
Spaces

Resource Description
GET /open_api/v1/spaces Spaces index
GET /open_api/v1/spaces/:id Show a space

Subscriptions
Subscriptions

Resource Description
GET /open_api/v1/subscriptions Subscriptions index

Trainings
Trainings

Resource Description
GET /open_api/v1/trainings Trainings index

User trainings
User trainings

Resource Description
GET /open_api/v1/user_trainings User trainings index

Users
Users

Resource Description
GET /open_api/v1/users Users index