Added some docs

This commit is contained in:
Oliver Walters 2019-06-18 01:49:07 +10:00
parent c6b1a80703
commit 2768a7cdf3
2 changed files with 6 additions and 1 deletions

View File

@ -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).

View File

@ -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>`_