mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #400 from SchrodingersGat/python-api-doc
Added some docs
This commit is contained in:
commit
f114192264
@ -42,7 +42,7 @@ Sequence of Events
|
||||
#. Client sends the completed form to server via POST
|
||||
#. Django backend handles POST request, specifically determines if the form is valid
|
||||
#. Return a JSON object containing status of form validity
|
||||
* If the form is valid, return (at minimum) {form_valid: true}. Client will close the modal.
|
||||
* If the form is valid, return (at minimum) ``{form_valid: true}``. Client will close the modal.
|
||||
* If the form is invalid, re-render the form and send back to the client. Process repeats
|
||||
|
||||
At the end of this process (i.e. after successful processing of the form) the client closes the modal and runs any optional post-processes (depending on the implementation).
|
||||
|
@ -35,3 +35,8 @@ API Code
|
||||
--------
|
||||
|
||||
Javascript/jQuery code for interacting with the server via the REST API can be found under ``InvenTree/static/script/InvenTree``.
|
||||
|
||||
Python interface
|
||||
----------------
|
||||
|
||||
A Python library for interacting with the InvenTree API is provided on `GitHub <https://github.com/inventree/inventree-python>`_
|
Loading…
Reference in New Issue
Block a user