Wisol 1.x API (0.2.1)

Download OpenAPI specification:Download

Wisol 1.x REST API - Reservation Salle | Ville de Kehlen

Create a new reservation

Creates a new reservation for a given location

Authorizations:
(BasicAuthAppKeyDeviceKey)
Request Body schema: application/json
objet
string

Subject of the reservation

salle
string

Location of the reservation

name
string

Name of the requirer

adresse
string

Adress of the requirer

date_debut
string <date>

Starting date

date_fin
string <date>

End date

heure_debut
string(^([01][0-9]|2[0-3])[:][0-5][0-9]([:][0-5][0-...

Starting date

heure_fin
string(^([01][0-9]|2[0-3])[:][0-5][0-9]([:][0-5][0-...

End date

equipement
Array of objects

Desired equipment as array of objects with id and quantity

info_sup
string

Additional information to be stored with a reservation

Responses

Request samples

Content type
application/json
{
  • "objet": "string",
  • "salle": "string",
  • "name": "string",
  • "adresse": "string",
  • "date_debut": "2019-08-24",
  • "date_fin": "2019-08-24",
  • "heure_debut": "08:00",
  • "heure_fin": "23:59",
  • "equipement": [
    ],
  • "info_sup": "string"
}

Response samples

Content type
application/json
"true"

List of reservations

Get a list of all reservations

Authorizations:
(BasicAuthAppKeyDeviceKey)
Request Body schema: application/json
where
object

Where clause to filter results (empty for all)

fields
Array of arrays

Array of fields

order
object

Order ASC or DESC

limit
integer

Limit result count

Responses

Request samples

Content type
application/json
{
  • "where": {
    },
  • "fields": [
    ],
  • "order": {
    },
  • "limit": 2
}

Response samples

Content type
application/json
[
  • {
    }
]

List of locations

Get a list of available locations

Authorizations:
(BasicAuthAppKeyDeviceKey)
Request Body schema: application/json
where
object

Where clause to filter results (empty for all)

fields
Array of arrays

Array of fields

order
object

Order ASC or DESC

limit
integer

Limit result count

Responses

Request samples

Content type
application/json
{
  • "where": {
    },
  • "fields": [
    ],
  • "order": {
    },
  • "limit": 2
}

Response samples

Content type
application/json
[
  • {
    }
]

List of equipment per location

Get a list of equipment available for locations

Authorizations:
(BasicAuthAppKeyDeviceKey)
Request Body schema: application/json
where
object

Where clause to filter results (empty for all)

fields
Array of arrays

Array of fields

order
object

Order ASC or DESC

limit
integer

Limit result count

Responses

Request samples

Content type
application/json
{
  • "where": {
    },
  • "fields": [
    ],
  • "order": {
    },
  • "limit": 2
}

Response samples

Content type
application/json
[
  • {
    }
]