This project demonstrates a RESTful API implementation in both Python and Go with MySQL and MongoDB. The API uses JWT tokens for authentication, with two implementations utilizing RabbitMQ as a message broker. Swagger is integrated for API documentation and better visualization of endpoints.
- Docker: Docker is required to run the application in a container.
Once the application is running, you can access the API endpoints as described below. Swagger documentation is available at /swagger or /docs depending on the framework used.
- GET /users
- Desc: Returns all users
- GET /users/ID
- Desc: Returns a single user
- POST /create
- Desc: Create a new user
- input:
{
"name": "israel",
"age": 22
}
- PUT /update/ID
- Desc: Update the user identified by their
ID
- input: name and/or age that you want to modify
- DELETE /delete/ID
- Desc: Delete the user identified by their
ID
- git clone https://github.com/RaelzeraXD/api
- cd api/gin
- docker-compose up
- git clone https://github.com/RaelzeraXD/api
- cd api/fiber
- docker-compose up
- git clone https://github.com/RaelzeraXD/api
- cd api/django
- docker-compose up
- git clone https://github.com/RaelzeraXD/api
- cd api/flask
- docker-compose up
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.