Hello, Resya here! 23 years old girl in +8 GMT (East Borneo) timezone. I am a Tax Collector and software engineer.
This 10th week project is a RESTful API built with Node.js, Express.js, MongoDB Atlas, and Swagger. It facilitates the interaction between two distinct roles: the "maker" and the "approver." The primary goal of this API is to manage transfer requests efficiently, ensuring data integrity and security.
-
CRUD Operations: The API supports Create, Read, Update, and Delete (CRUD) operations for two distinct collections: Users and Transfers.
-
Role-Based Access: Users are categorized into "maker" and "approver" roles, each with specific permissions and access levels.
-
Swagger Documentation: Comprehensive API documentation is available via Swagger UI, making it easy for developers to understand and interact with the API.
-
MongoDB Atlas Integration: Data is stored in MongoDB Atlas, providing scalability, reliability, and ease of management.
- Access the API documentation and test the endpoints using Swagger UI at
http://localhost:3000/
.
GET /
: homepage.GET /users/users
: Retrieve all users.POST /users/register
: Register a new user.POST /users/login
: Login a new user.
GET /auth/
: Retrieve all transfer requests.POST /auth/transfer
: Create a new transfer request.PUT /auth/transfer/:id
: Update an existing transfer request by ID.DELETE /auth/transfer/:id
: Delete a transfer request by ID.