2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 21:46:46 +00:00

110 Commits

Author SHA1 Message Date
Oliver Walters
055cc37e68 API improvements
- Simple function connect() which loads saves settings from preferences file
2020-04-04 13:43:29 +11:00
Oliver Walters
ee7ab5308e server / username / password now saved to local preferences 2020-04-03 14:25:28 +11:00
Oliver Walters
0ee1dedd45 Connection now works properly! yay!
Nested asyncs are hard ya'll
2020-03-31 23:35:23 +11:00
Oliver Walters
83fc4b407d Work on improving async calls
- Still don't fully grok them
2020-03-31 23:07:31 +11:00
Oliver Walters
ef09b024e6 Add InvenTreeObject class for getting API data 2020-03-31 00:05:54 +11:00
Oliver Walters
3da5adca28 GET request now can be provided with query parameters, and works OK 2020-03-29 13:05:11 +11:00
Oliver Walters
4da4731fb2 API improvements
- Catch more errors
- Use username/password data if token has not been received
2020-03-29 12:44:36 +11:00
Oliver Walters
b71c665453 Better use of async functions for API
- Use local_preferences for storing data
2019-06-26 00:07:18 +10:00
Oliver Walters
6e807cbed1 Make the API a singleton class
Also add some simple URL validation
2019-06-25 22:38:11 +10:00
Oliver Walters
3258903745 Add API class
- Secure token based on username/password
2019-06-25 00:40:03 +10:00