CS-Coursework/documentation/create_user.md

379 B

Create User

Creates a new user in the database. Endpoint

POST /api/create_user

Request Body

{
  "username": "example_user",
  "password": "example_password"
}

Example Request

curl -X POST "https://example.com/api/create_user" \
-H "Content-Type: application/json" \
-d '{"username": "example_user", "password": "example_password"}'