CUSTOMER

Checked N ENDPOINT M. HTTP WHAT IT DOES?
Y 1 /auth/login POST Login
Y 2 /customers/{username} GET Gets customer data
Y 3 /orders GET Gets orders of client
Y 4 /orders/{id} GET Gets order data
Y 5 /orders/{id}/volumes GET Gets volumes of order
Y 6 /volumes/{id}/sensors GET Gets sensors of volume
Y 7 /sensors/{id} GET Gets sensors data (including history)
Y 8 /volumes/{id}/products GET Gets products of volume
Y 9 /volumes/{id} GET Gets a single volume
Y 10 /auth/user GET Gets is user data like Role
Y 11 /customers/{username} PUT Edit a customer
Y 12 /auth/{username}/change-password PATCH Changes his password
Y 13 /volumes GET Get all volumes

JSON


MANAGER

Checked N ENDPOINT M. HTTP WHAT IT DOES?
Y 1 /auth/login POST Login
Y 2 /managers/{username} GET Gets manager data
Y 3 /orders GET Gets all orders
Y 4 /orders/{id} GET Gets order data
Y 5 /customers/{username}/orders GET Gets orders of client
Y 6 /orders/{id}/volumes GET Gets volumes of order
Y 7 /volumes/{id}/sensors GET Gets sensors of volume
Y 8 /sensors/{id} GET Gets sensors data (including history)
Y 9 /volumes/{id}/products GET Gets products of volume
Y 10 /volumes/{id} GET Gets a single volume
Y 11 /auth/user GET Gets is user data like Role
Y 12 /managers/{username} PUT Edit a manager
Y 13 /auth/{username}/change-password PATCH Changes his password
Y 14 /volumes GET Get all volumes

JSON


EMPLOYEE

Cecked N ENDPOINT M. HTTP WHAT IT DOES?
Y 1 /auth/login POST Login
Y 2 /employees/{username} GET Gets employee data
Y 3 /customers GET Gets all customers
Y 4 /product-types GET Gets all product types
Y 5 /package-types GET Gets all package types
Y 6 /sensor-types GET Gets all sensor types
Y 7 /orders/available GET Gets all available orders (not delivered)
Y 8 /orders POST Post a new order
Y 9 /volumes POST Post a new volume associated with an order
Y 10 /product-types/{id}/mandatory-sensors GET Gets all mandatory sensors of product types
Y 11 /package-types/{id}/mandatory-sensors GET Gets all mandatory sensors of package types
Y 12 /volumes/{id}/deliver PATCH Tell the system that volume is delivered
Y 13 /orders/{id}/deliver PATCH Tell the system that order is delivered
Y 14 /volumes/available GET Gets volumes available
Y 15 /auth/user GET Gets is user data like Role
Y 16 /employees/{username} PUT Edit a employe
Y 17 /auth/{username}/change-password PATCH Changes his password

JSON


Admin

Checked N ENDPOINT M. HTTP WHAT IT DOES?
Y 1 /auth/login POST Login
Y 2 /auth/user GET Gets is user data like Role
Y 3 /auth/{username}/change-password PATCH Changes his password
Y 4 /admins/{username} GET Gets admin data
Y 5 /admins/{username} PUT Changes his data
Y 6 /admins POST Create an Admin
Y 7 /customers POST Create a Customer
Y 8 /employees POST Create a Employee
Y 9 /managers POST Create a Manager
Y 10 /customers/{username} PUT Edits a Customer
Y 11 /employees/{username} PUT Edits a Employee
Y 12 /managers/{username} PUT Edits a Manager
ALL ALL OTHER ENPOINTS IN THE PROJECT

JSON


Sensor

Checked N ENDPOINT M. HTTP WHAT IT DOES?
Y 1 /sensors/{sensorId}/add-value
POST Add a value to sensor’s history
Y 2 /sensors GET Show all sensors with history
Y 3 /sensors/{sensorId] GET Show sensor by ID

JSON