CS-Coursework/documentation/post_user_create.md

376 B

Create User API Endpoint

POST /api/user/create

Creates a new user in the database.

Request Parameters

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

Example Request

curl -X POST "https://url/api/user/create" \
-H "Content-Type: application/json" \
-d '{"username": "example_user", "password": "example_password"}'