22 lines
376 B
Markdown
22 lines
376 B
Markdown
# Create User API Endpoint
|
|
|
|
## POST `/api/user/create`
|
|
|
|
Creates a new user in the database.
|
|
|
|
## Request Parameters
|
|
|
|
```json
|
|
{
|
|
"username": "example_user",
|
|
"password": "example_password"
|
|
}
|
|
```
|
|
|
|
## Example Request
|
|
|
|
```bash
|
|
curl -X POST "https://url/api/user/create" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"username": "example_user", "password": "example_password"}'
|
|
``` |