Browse Source

readme: Add API docs

master
Elis Hirwing 3 years ago
parent
commit
0c75ba92ed
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 10
      README.org

10
README.org

@ -3,3 +3,13 @@
#+begin_src sh
php -S localhost:8000 -t public/
#+end_src
** API docs
*** Request stock by item name
: curl http://localhost:8000/inventory/item-name
*** Bring stock down by item name
: curl -X DELETE http://localhost:8000/inventory/item-name/amount
*** Increase stock by item name
: curl -X PUT http://localhost:8000/inventory/item-name/amount

Loading…
Cancel
Save