Examples

Here are examples of how to call your API. There are 2 types of requests, authenticated and unauthenticated.

Unauthenticated Requests

Requests that do not require a login and permissions to execute. These are used for the logged out version of your application or for cron jobs where you might want to execute a specific API call on a schedule. These can also be used for public calls like generating a PDF via an API call. You can lock down where these requests are allowed to be executed from by domain name. Instructions for this are under docs/install & config, under Configure slender_settings_prod.settings. You can add unauthenticated calls to this file.

Login

Since you will be using the login request to authenticate a user, it does not require authentication. Here is an example of how to use the login API call.


Register

This is an example of a simple user registration request. You do not need to be logged in to make this call.


Authenticated Requests

Authenticated requests will fail if the user has not logged in or does not have permissions to execute once they are logged in.

Select Users

To view all users, by default, you must be logged in as an admin.