API Documentation

About

This is the API documentation page of the Authentication Lab. It provides detailed information about the available endpoints and how to interact with the authentication features.

User Registration

A new user account is created by sending a JSON request body to the registration endpoint.

Example JSON request body with username, email, and password.
Figure 1. Example request body for user registration.

Stored User Data

After registration, the password is hashed using bcrypt before being stored in the database.

Example database record containing a hashed password.
Figure 2. Example user record stored in the database.

API Endpoints

The authentication API exposes endpoints for registration, login, health checks, and protected resources.

Table of API endpoints and descriptions.
Figure 3. Available API endpoints.

Database Schema

User accounts are stored in a SQLite database using the following table structure.

SQLite users table schema.
Figure 4. SQLite users table schema.