# Getting Started

The base URL for all API requests is:

https://amgen-admin.tati.digital/v0.1/

All endpoint paths mentioned in this documentation should be appended to the base URL. This API supports the following methods:

  • GET: Get a resource or list of resources
  • POST: Create a new resource
  • PUT: Update an existing resource
  • DELETE: Delete a resource

# Request and Response Format

Request Format: JSON is used for the request body in POST and PUT requests. All requests requiring data input must include Content-Type: application/json in the headers.

Response Format: All responses are returned in JSON format.

# Authentication

Access to most endpoints requires authentication via a Bearer token. To make a request, you must include the token in the Authorization header as a Bearer token. Example:

Authorization: Token <token>

To obtain a token, send a POST request to the following endpoint with your username and password:

/token/

The full URL is:

https://amgen-admin.tati.digital/v0.1/token/

Method: POST

The payload should be a JSON object with the following fields:

  • username: The username of the user
  • password: The password of the user
{
    "username": "your_username",
    "password": "your_password"
}

Example response:

{
    "token": "your_token"
}

# API Status Codes

Status Code Description
200 OK Request was successful. Data is returned.
201 Created Resource was successfully created.
400 Bad Request Request is malformed or invalid.
401 Unauthorized Authentication token is missing or invalid.
403 Forbidden User does not have permission (e.g., not an admin).
404 Not Found Requested resource could not be found.
500 Internal Server Error An unexpected server error occurred.