Skip to content

Accessing APIs without React

Cris Simpson edited this page Apr 14, 2021 · 4 revisions

As of c863c77 , a valid JWT is needed to access API endpoints. If you don't want to use the normal route (React) there are a few options:

  • Programmatically through JS: See examples in Login.js, Admin.js, Search.js
  • Programmatically through Python: See /server/test_api.py
  • Using Postman

Using Postman

To use Postman, you need to :

  • Get a valid JWT, which is returned by /api/user/login
    • You can do this through Postman or by capturing the returned access_token using browser devtools
Clone this wiki locally