-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Following endpoints are required:
User:
-
POST /api/v4/user/createCreate a user -
PATCH /api/v4/user/changeModify user -
DELETE /api/v4/user/deleteDelete user -
GET /api/v4/userGet a list of all users -
GET /api/v4/user/:idGet user by id -
GET /api/v4/user/:user_class_nameGet a list of users with specific class -
GET /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 ones -
GET /api/v4/user?booking=trueGet a list of user, that are currently booking devices
User-Class:
-
POST /api/v4/user/class/createCreate a class -
PATCH /api/v4/user/class/changeModify class -
DELETE /api/v4/user/class/deleteDelete class -
GET /api/v4/user/classGet a list of all classes -
GET /api/v4/user/class/:idGet class by id -
GET /api/v4/user/class?query=Get class by class name
Device:
-
POST /api/v4/device/createCreate a device -
PATCH /api/v4/device/changeModify device -
DELETE /api/v4/device/deleteDelete device -
GET /api/v4/deviceGet a list of all devices -
GET /api/v4/device/:idGet device by id -
GET /api/v4/device/:uidGet device by uid -
GET /api/v4/device/:device_type_nameGet a list of devices with a specific type -
GET /api/v4/device/:id/historyGet a list of user by id that booked the device including the dates -
GET /api/v4/device/:uid/historyGet a list of user by uid that booked the device including the dates -
GET /api/v4/device?booking=trueGet a list of booked devices
Device-Type:
-
POST /api/v4/device/type/createCreate a device type -
PATCH /api/v4/device/type/changeModify device type -
DELETE /api/v4/device/type/deleteDelete device type -
GET /api/v4/device/typeGet a list of all device types -
GET /api/v4/device/type/:idGet device type by type id -
GET /api/v4/device/type?query=Get device type id by device type name
Usercard:
-
POST /api/v4/usercard/createCreate a usercard -
PATCH /api/v4/usercard/changeModify usercard -
DELETE /api/v4/usercard/deleteDelete usercard -
GET /api/v4/usercardGet a list of all usercards -
GET /api/v4/usercard/:idGet usercard by id -
GET /api/v4/usercard/:uidGet usercard by uid -
GET /api/v4/usercard/:usercard_type_nameGet a list of usercards with specific type
Usercard-Type:
-
POST /api/v4/usercard/type/createCreate a usercard type -
PATCH /api/v4/usercard/type/changeModify usercard type -
DELETE /api/v4/usercard/type/deleteDelete usercard type -
GET /api/v4/usercard/typeGet a list of all usercard types -
GET /api/v4/usercard/type/:idGet usercard type by type id -
GET /api/v4/usercard/type?query=Get usercard type id by usercard type name
Token:
-
POST /api/v4/token/createCreate a token -
DELETE /api/v4/token/deleteDelete token -
GET /api/v4/tokenGet a list of all tokens -
GET /api/v4/token/:idGet token by id -
GET /api/v4/token?username=Get token by username -
GET /api/v4/token/validateCheck whether token is valid or not -
POST /api/v4/token/authorizeGet token with username and password (params: username, password)
Token-Permission:
-
GET /api/v4/token/permissionGet a list of all permissions -
GET /api/v4/token/permission/:idGet name and description of token by id -
GET /api/v4/token/permission?query=Get permission id by name
Csv:
-
POST /api/v4/csvimport csv data into database
Options for GET endpoints:
-
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 sensitive
Most requests will be available only from version 4 and newer