|
@@ -1,32 +1,36 @@
|
|
-/login - POST login
|
|
|
|
-/login - DELETE logout
|
|
|
|
-/login - GET STATUS
|
|
|
|
|
|
+api/login - POST login
|
|
|
|
+api/logout - DELETE logout
|
|
|
|
+api/password POST change password
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# INVENTORY
|
|
# INVENTORY
|
|
-inventory/items - GET -> get all items
|
|
|
|
-inventory/item - POST create items
|
|
|
|
-inventory/item/<item_id> - GET get item by id
|
|
|
|
-inventory/item/<item_id> - UPDATE item by id
|
|
|
|
-inventory/item/<item_id> - DELETE item by id
|
|
|
|
|
|
+api/inventory/items - GET -> get all items
|
|
|
|
+api/inventory/item - POST create items
|
|
|
|
+api/inventory/item/<item_id> - GET get item by id
|
|
|
|
+api/inventory/item/<item_id> - UPDATE item by id
|
|
|
|
+api/inventory/item/<item_id> - DELETE item by id
|
|
|
|
+api/inventory/item/template GET get null item template json
|
|
|
|
|
|
-inventory/sites - GET -> get all site
|
|
|
|
-inventory/site - POST create site
|
|
|
|
-inventory/site/<site_id> - GET get site by id
|
|
|
|
-inventory/site/<site_id> - UPDATE site by id
|
|
|
|
-inventory/site/<site_id> - DELETE site by id
|
|
|
|
|
|
+api/inventory/sites - GET -> get all site
|
|
|
|
+api/inventory/site - POST create site
|
|
|
|
+api/inventory/site/<site_id> - GET get site by id
|
|
|
|
+api/inventory/site/<site_id> - UPDATE site by id
|
|
|
|
+api/inventory/site/<site_id> - DELETE site by id
|
|
|
|
+api/inventory/site/template GET get null item template json
|
|
|
|
|
|
-inventory/contacts - GET -> get all contact
|
|
|
|
-inventory/contact - POST create contact
|
|
|
|
-inventory/contact/<contact_id> - GET get contact by id
|
|
|
|
-inventory/contact/<contact_id> - UPDATE contact by id
|
|
|
|
-inventory/contact/<contact_id> - DELETE contact by id
|
|
|
|
|
|
+api/inventory/contacts - GET -> get all contact
|
|
|
|
+api/inventory/contact - POST create contact
|
|
|
|
+api/inventory/contact/<contact_id> - GET get contact by id
|
|
|
|
+api/inventory/contact/<contact_id> - UPDATE contact by id
|
|
|
|
+api/inventory/contact/<contact_id> - DELETE contact by id
|
|
|
|
+api/inventory/contact/template GET get null item template json
|
|
|
|
|
|
-inventory/groups - GET -> get all groups with items array id
|
|
|
|
-inventory/group - POST create group with items ids
|
|
|
|
-inventory/group/<contact_id> - GET get group by id
|
|
|
|
-inventory/group/<contact_id>/item/<item_id> - POST add item to group
|
|
|
|
-inventory/group/<contact_id>/item/<item_id> - DELETE delete item to group
|
|
|
|
-inventory/group/<contact_id> - DELETE group by id
|
|
|
|
|
|
+api/inventory/groups - GET -> get all groups with items array id
|
|
|
|
+api/inventory/group - POST create group with items ids
|
|
|
|
+api/inventory/group/<contact_id> - GET get group by id
|
|
|
|
+api/inventory/group/<contact_id>/item/<item_id> - POST add item to group
|
|
|
|
+api/inventory/group/<contact_id>/item/<item_id> - DELETE delete item to group
|
|
|
|
+api/inventory/group/<contact_id> - DELETE group by id
|
|
|
|
+api/inventory/group/template GET get null item template json
|