Introduction

This API provides endpoints for user authentication and contact management.

Authentication

POST /user/register

Register a new user

Request Body:
{
    "username": "string",
    "email": "string",
    "password": "string"
}
POST /user/login

Login an existing user

Request Body:
{
    "email": "string",
    "password": "string"
}
GET /user/current

Get current user information

Contacts

GET /contact

Get all contacts for the current user

GET /contact/:id

Get a specific contact by ID

POST /contact

Add a new contact

Request Body:
{
    "name": "string",
    "email": "string",
    "phone": "string"
}
PUT /contact/:id

Update a contact

Request Body:
{
    "name": "string",
    "email": "string",
    "phone": "string"
}
DELETE /contact/:id

Delete a contact