# Demo Data Service

All services related to Demo Data are listed in this page.

### `POST` Load Data

This service is used to load demo data into OMS. When you run this service, it will execute a Django command to load fixture data to OMS.

**Path:** `/api/v1/oms/demo/load-data/`

**Example Request**

To run this service, a `POST` request should be sent to the `/api/v1/oms/demo/load-data/` endpoint. No payload is required. In the headers, set the `Authorization` header to include the token for authentication.

Here's an example of how to make the request in python:

```python
import requests
import json
url = "https://{domain_url}/api/v1/oms/demo/load-data/"
token = "11111XXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'Content-Type': 'application/json',
    'Authorization': f'Token {token}'
}

response = requests.request('POST', url, headers=headers)
print(response.json())
```

**Example Response (200 OK)**

This service returns a successful response with a status code of `200 OK`. The response body does not contain any objects or messages.

**Example Response (401 Unauthorized)**

If the authorization token is missing or incorrect in the request headers, the service will return a response with status code of `401 Unauthorized`. The response body does not contain any objects or messages.
