- Authentication
- Categories controller
- Items controller
- Storehouses controller
- Suppliers controller
- Units controller
- Users controller
- Add
Units
CRUD- GET
/units[/{id}]
- GET
/units[?name=]
- POST
/units
- PUT
/units/{id}
- GET
- Add
Units
to DataBase schema and update previously created data - GET/POST/PUT
/items
: changed items request/response body ( addunit
as JSON sub-objects ) - GET
/items
: changed response body ( add"total_qty"
field )
JWT authorization uri:
-
POST
/auth/login
-
Users available for tests:
Login Password Status admin@mail.com
admin-password
ACTIVE
user@mail.com
user-password
ACTIVE
root@mail.com
root-password
BANNED
-
Database communications:
User Permissions Admin
READ / WRITE
User
READ
ADMIN / USER availiable uri's:
-
GET
/users[/{id}]
-
GET
/users[?name=]
ADMIN only availiable uri's
-
POST
/users
-
PUT
/users/{id}
-
DELETE
/users/{id}
- Add paging for items:
- GET
/items[?name=][&size=][&page=][&sort=]
- GET
- Add
Storehouses
CRUD:- GET
/storehouses[/{id}]
- GET
/storehouses[?name=]
- GET
/storehouses[/{id}/items]
- POST
/storehouses
- PUT
/storehouses/{id}
- GET
- Added swagger docs for API
- GET/POST/PUT
/items
: changed items request/response format (supplier
,categories
- now are JSON sub-objects)
- Add
Categories
CRUD:- GET
/categories[/{id}]
- GET
/categories[?name=]
- GET
/categories[/{id}/items]
- POST
/categories
- PUT
/categories/{id}
- GET
- Add
Suppliers
CRUD:- GET
/suppliers[/{id}]
- GET
/suppliers[?name=]
- GET
/suppliers[/{id}/items]
- POST
/suppliers
- PUT
/suppliers/{id}
- GET
- Add
Items
CRUD methods:- PUT, DELETE
/items/{id}
- PUT, DELETE
- Add
Items
CRUD method:- POST
/items
- POST
- Add
Items
CRUD methods:- GET
/items[/{id}]
- GET
/items[?name=]
- GET
- Added basic dependencies, start project, add simple tests