CS-Coursework/documentation/post_user_create.md

22 lines
376 B
Markdown
Raw Normal View History

# Create User API Endpoint
2024-03-20 23:58:14 +00:00
## POST `/api/user/create`
2024-03-20 23:58:14 +00:00
Creates a new user in the database.
2024-03-20 23:58:14 +00:00
## Request Parameters
2024-03-20 23:58:14 +00:00
```json
{
"username": "example_user",
"password": "example_password"
}
```
## Example Request
```bash
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
```