API Documentation

Welcome to the API documentation. To get started, please follow these steps:

  1. Consume the login URL to obtain an access token. The token will be used in the "Authorization" header of subsequent API requests.
  2. Store the access token securely, as it will be required for all API requests. The token will expire after a certain period of time, so be sure to check for expiration and request a new token when necessary.
  3. Get the user token from the user's account, which can be used to authenticate user-specific requests.

You can download the Postman collection JSON file from the public folder.

To use the API in Postman, you can import the JSON collection file and set the "Authorization" header with the access token. Here is an example:


{
    "method": "GET",
    "url": "/api/allparcels/",
    "headers": {
        "Authorization": "Bearer [ACCESS_TOKEN]"
    }
}

Make sure to replace [ACCESS_TOKEN] with your actual access token.

If you receive a 401 response code, it means your access token has expired and you need to request a new one.

Download Postman JSON Collection