API implementation based on Swagger for a bloggers platform with authentication, refresh tokens, device management, and IP restriction.
- Backend: Node.js, NestJS
- Database: MongoDB, MongoDB Atlas, Mongoose
- Postman: Used to test API endpoints and validate functionality.
- The application is designed to be deployed on a Virtual Private Server (VPS).
- GitHub Actions is used for CI/CD to automate testing
- User authentication with registration and login.
- Token-based session management (access and refresh tokens).
- Password recovery via email.
- User management (CRUD operations).
- Device management and IP restriction for added security.
The API is hosted at: http://5.253.188.129:3001
Method: GET
Endpoint: /users
Description: Retrieve a list of all users.
Success: 200 OK
[
{
"id": "user-id-1",
"email": "user1@example.com",
"createdAt": "2023-01-01T12:00:00Z"
},
{
"id": "user-id-2",
"email": "user2@example.com",
"createdAt": "2023-01-02T12:00:00Z"
}
]