api urls catalog.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /login - POST login
  2. /login - DELETE logout
  3. /login - GET STATUS
  4. # INVENTORY
  5. inventory/items - GET -> get all items
  6. inventory/item - POST create items
  7. inventory/item/<item_id> - GET get item by id
  8. inventory/item/<item_id> - UPDATE item by id
  9. inventory/item/<item_id> - DELETE item by id
  10. inventory/sites - GET -> get all site
  11. inventory/site - POST create site
  12. inventory/site/<site_id> - GET get site by id
  13. inventory/site/<site_id> - UPDATE site by id
  14. inventory/site/<site_id> - DELETE site by id
  15. inventory/contacts - GET -> get all contact
  16. inventory/contact - POST create contact
  17. inventory/contact/<contact_id> - GET get contact by id
  18. inventory/contact/<contact_id> - UPDATE contact by id
  19. inventory/contact/<contact_id> - DELETE contact by id
  20. inventory/groups - GET -> get all groups with items array id
  21. inventory/group - POST create group with items ids
  22. inventory/group/<contact_id> - GET get group by id
  23. inventory/group/<contact_id>/item/<item_id> - POST add item to group
  24. inventory/group/<contact_id>/item/<item_id> - DELETE delete item to group
  25. inventory/group/<contact_id> - DELETE group by id