Fleio backend (and API)¶
The Fleio API is not yet documented, but you can see here some API request samples made with curl.
To see what HTTP requests the Fleio frontend is making to the backend and what JSON responses are returned open your Fleio installation in the Google Chrome browser and use the Chrome Developer Tools feature.
Here’s how this looks in Chrome:
Django REST framework (DRF) offers a browsable API, where you can see a list of available URLs, list of objects in JSON format and also simulate a few create/update operations.
To enable the DRF browsable API add this line the end of to your settings.py file file:
REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] += ('rest_framework.renderers.BrowsableAPIRenderer', )
Don’t forget to reload the code in the uwsgi server every time you add or modify Python files. Run this command in your server’s console to reload the code:
sudo systemctl reload uwsgi
Make sure you are authenticated as a staff user and you should be able to see a page like this one at URL
See how you can query the Fleio API by using curl.