Following endpoints are required: User: - [x] `POST /api/v4/user/create` Create a user - [x] `PATCH /api/v4/user/change` Modify user - [x] `DELETE /api/v4/user/delete` Delete user - [x] `GET /api/v4/user` Get a list of all users - [x] `GET /api/v4/user/:id` Get user by id - [x] `GET /api/v4/user/:user_class_name` Get a list of users with specific class - [x] `GET /api/v4/user?query` Get user by name (firstname, lastname, or both - full names are separated by space (%20)) - [x] `GET /api/v4/user/:id/history` Get a list of the last bookings including current ones - [x] `GET /api/v4/user?booking=true` Get a list of user, that are currently booking devices User-Class: - [x] `POST /api/v4/user/class/create` Create a class - [x] `PATCH /api/v4/user/class/change` Modify class - [x] `DELETE /api/v4/user/class/delete` Delete class - [x] `GET /api/v4/user/class` Get a list of all classes - [x] `GET /api/v4/user/class/:id` Get class by id - [x] `GET /api/v4/user/class?query=` Get class by class name Device: - [x] `POST /api/v4/device/create` Create a device - [x] `PATCH /api/v4/device/change` Modify device - [x] `DELETE /api/v4/device/delete` Delete device - [x] `GET /api/v4/device` Get a list of all devices - [x] `GET /api/v4/device/:id` Get device by id - [x] `GET /api/v4/device/:uid` Get device by uid - [x] `GET /api/v4/device/:device_type_name` Get a list of devices with a specific type - [x] `GET /api/v4/device/:id/history` Get a list of user by id that booked the device including the dates - [x] `GET /api/v4/device/:uid/history` Get a list of user by uid that booked the device including the dates - [x] `GET /api/v4/device?booking=true` Get a list of booked devices Device-Type: - [x] `POST /api/v4/device/type/create` Create a device type - [x] `PATCH /api/v4/device/type/change` Modify device type - [x] `DELETE /api/v4/device/type/delete` Delete device type - [x] `GET /api/v4/device/type` Get a list of all device types - [x] `GET /api/v4/device/type/:id` Get device type by type id - [x] `GET /api/v4/device/type?query=` Get device type id by device type name Usercard: - [x] `POST /api/v4/usercard/create` Create a usercard - [x] `PATCH /api/v4/usercard/change` Modify usercard - [x] `DELETE /api/v4/usercard/delete` Delete usercard - [x] `GET /api/v4/usercard` Get a list of all usercards - [x] `GET /api/v4/usercard/:id` Get usercard by id - [x] `GET /api/v4/usercard/:uid` Get usercard by uid - [x] `GET /api/v4/usercard/:usercard_type_name` Get a list of usercards with specific type Usercard-Type: - [x] `POST /api/v4/usercard/type/create` Create a usercard type - [x] `PATCH /api/v4/usercard/type/change` Modify usercard type - [x] `DELETE /api/v4/usercard/type/delete` Delete usercard type - [x] `GET /api/v4/usercard/type` Get a list of all usercard types - [x] `GET /api/v4/usercard/type/:id` Get usercard type by type id - [x] `GET /api/v4/usercard/type?query=` Get usercard type id by usercard type name Token: - [x] `POST /api/v4/token/create` Create a token - [x] `DELETE /api/v4/token/delete` Delete token - [x] `GET /api/v4/token` Get a list of all tokens - [x] `GET /api/v4/token/:id` Get token by id - [x] `GET /api/v4/token?username=` Get token by username - [x] `GET /api/v4/token/validate` Check whether token is valid or not - [x] `POST /api/v4/token/authorize` Get token with username and password (params: username, password) Token-Permission: - [x] `GET /api/v4/token/permission` Get a list of all permissions - [x] `GET /api/v4/token/permission/:id` Get name and description of token by id - [x] `GET /api/v4/token/permission?query=` Get permission id by name Csv: - [x] `POST /api/v4/csv` import csv data into database Options for `GET` endpoints: - [x] `page=` and `size=` set the amount of results and shift with page (page by default 0) - [x] `strict=` if true, the search will be limited to 100% accordance, but its not case sensitive Most requests will be available only from version 4 and newer
Following endpoints are required:
User:
POST /api/v4/user/createCreate a userPATCH /api/v4/user/changeModify userDELETE /api/v4/user/deleteDelete userGET /api/v4/userGet a list of all usersGET /api/v4/user/:idGet user by idGET /api/v4/user/:user_class_nameGet a list of users with specific classGET /api/v4/user?queryGet user by name (firstname, lastname, or both - full names are separated by space (%20))GET /api/v4/user/:id/historyGet a list of the last bookings including current onesGET /api/v4/user?booking=trueGet a list of user, that are currently booking devicesUser-Class:
POST /api/v4/user/class/createCreate a classPATCH /api/v4/user/class/changeModify classDELETE /api/v4/user/class/deleteDelete classGET /api/v4/user/classGet a list of all classesGET /api/v4/user/class/:idGet class by idGET /api/v4/user/class?query=Get class by class nameDevice:
POST /api/v4/device/createCreate a devicePATCH /api/v4/device/changeModify deviceDELETE /api/v4/device/deleteDelete deviceGET /api/v4/deviceGet a list of all devicesGET /api/v4/device/:idGet device by idGET /api/v4/device/:uidGet device by uidGET /api/v4/device/:device_type_nameGet a list of devices with a specific typeGET /api/v4/device/:id/historyGet a list of user by id that booked the device including the datesGET /api/v4/device/:uid/historyGet a list of user by uid that booked the device including the datesGET /api/v4/device?booking=trueGet a list of booked devicesDevice-Type:
POST /api/v4/device/type/createCreate a device typePATCH /api/v4/device/type/changeModify device typeDELETE /api/v4/device/type/deleteDelete device typeGET /api/v4/device/typeGet a list of all device typesGET /api/v4/device/type/:idGet device type by type idGET /api/v4/device/type?query=Get device type id by device type nameUsercard:
POST /api/v4/usercard/createCreate a usercardPATCH /api/v4/usercard/changeModify usercardDELETE /api/v4/usercard/deleteDelete usercardGET /api/v4/usercardGet a list of all usercardsGET /api/v4/usercard/:idGet usercard by idGET /api/v4/usercard/:uidGet usercard by uidGET /api/v4/usercard/:usercard_type_nameGet a list of usercards with specific typeUsercard-Type:
POST /api/v4/usercard/type/createCreate a usercard typePATCH /api/v4/usercard/type/changeModify usercard typeDELETE /api/v4/usercard/type/deleteDelete usercard typeGET /api/v4/usercard/typeGet a list of all usercard typesGET /api/v4/usercard/type/:idGet usercard type by type idGET /api/v4/usercard/type?query=Get usercard type id by usercard type nameToken:
POST /api/v4/token/createCreate a tokenDELETE /api/v4/token/deleteDelete tokenGET /api/v4/tokenGet a list of all tokensGET /api/v4/token/:idGet token by idGET /api/v4/token?username=Get token by usernameGET /api/v4/token/validateCheck whether token is valid or notPOST /api/v4/token/authorizeGet token with username and password (params: username, password)Token-Permission:
GET /api/v4/token/permissionGet a list of all permissionsGET /api/v4/token/permission/:idGet name and description of token by idGET /api/v4/token/permission?query=Get permission id by nameCsv:
POST /api/v4/csvimport csv data into databaseOptions for
GETendpoints:page=andsize=set the amount of results and shift with page (page by default 0)strict=if true, the search will be limited to 100% accordance, but its not case sensitiveMost requests will be available only from version 4 and newer