CS-Coursework/documentation/create_user.md

25 lines
379 B
Markdown
Raw Normal View History

2024-03-20 23:58:14 +00:00
# Create User
Creates a new user in the database.
Endpoint
```js
POST /api/create_user
```
## Request Body
```json
{
"username": "example_user",
"password": "example_password"
}
```
## Example Request
```bash
curl -X POST "https://example.com/api/create_user" \
-H "Content-Type: application/json" \
-d '{"username": "example_user", "password": "example_password"}'
2024-03-21 17:13:37 +00:00
```