2024-03-25 09:40:43 +00:00
|
|
|
# Create User API Endpoint
|
2024-03-20 23:58:14 +00:00
|
|
|
|
2024-03-25 09:40:43 +00:00
|
|
|
## POST `/api/user/create`
|
2024-03-20 23:58:14 +00:00
|
|
|
|
2024-03-25 09:40:43 +00:00
|
|
|
Creates a new user in the database.
|
2024-03-20 23:58:14 +00:00
|
|
|
|
2024-03-25 09:40:43 +00:00
|
|
|
## Request Parameters
|
2024-03-20 23:58:14 +00:00
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"username": "example_user",
|
|
|
|
"password": "example_password"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Example Request
|
|
|
|
|
|
|
|
```bash
|
2024-03-25 09:40:43 +00:00
|
|
|
curl -X POST "https://url/api/user/create" \
|
2024-03-20 23:58:14 +00:00
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
-d '{"username": "example_user", "password": "example_password"}'
|
2024-03-21 17:13:37 +00:00
|
|
|
```
|