Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

API Documentation

Interactive API documentation for FIVUCSAS services.

Auto-Generated API Documentation

Backend API (Spring Boot)

⭐ Interactive Documentation:

Note: Start the backend first:

cd identity-core-api
./mvnw spring-boot:run

Biometric Service (FastAPI)

⭐ Interactive Documentation:

Note: Start the service first:

cd biometric-processor
./venv/Scripts/activate
uvicorn app.main:app --reload --port 8001

Reference Documentation

Implementation Guides

API Features

Authentication API

  • User registration
  • User login (JWT tokens)
  • Token refresh
  • Logout

User Management API

  • Create users
  • List users (with search and filtering)
  • Get user details
  • Update users
  • Delete users
  • User statistics

Biometric API

  • Enroll face biometric (extract 512-d face embedding)
  • Verify face biometric (compare against enrolled embedding)
  • Get biometric enrollment status

Tenant Management API (Future)

  • Multi-tenant support

Authentication

Most endpoints require JWT authentication. Include the token in the Authorization header:

Authorization: Bearer <your-jwt-token>

Example API Calls

Register User

curl -X POST http://localhost:8080/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "test@example.com",
    "password": "Test123!",
    "firstName": "John",
    "lastName": "Doe",
    "phoneNumber": "+905551234567",
    "idNumber": "12345678901"
  }'

Login

curl -X POST http://localhost:8080/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "test@example.com",
    "password": "Test123!"
  }'

Get All Users (requires auth)

curl -X GET http://localhost:8080/api/v1/users \
  -H "Authorization: Bearer <your-token>"

Enroll Biometric

curl -X POST http://localhost:8080/api/v1/biometric/enroll/{userId} \
  -H "Authorization: Bearer <your-token>" \
  -F "image=@path/to/face-image.jpg"

Verify Biometric

curl -X POST http://localhost:8080/api/v1/biometric/verify/{userId} \
  -H "Authorization: Bearer <your-token>" \
  -F "image=@path/to/verification-image.jpg"

For more examples and interactive testing, see the Swagger UI.

API Design Principles

  • RESTful design
  • OpenAPI 3.0 specification
  • Auto-generated from code annotations (always accurate)
  • JWT-based authentication
  • Proper HTTP status codes
  • Consistent error responses
  • Input validation

← Back to Main Documentation