Skip to content
/ api Public

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.

License

Notifications You must be signed in to change notification settings

RaelzeraXD/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API

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.

Prerequisites

  • Docker: Docker is required to run the application in a container.

Usage

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.

EndPoints

  1. GET /users
  • Desc: Returns all users
  1. GET /users/ID
  • Desc: Returns a single user
  1. POST /create
  • Desc: Create a new user
  • input:
{
    "name": "israel",
    "age": 22
}
  1. PUT /update/ID
  • Desc: Update the user identified by their ID
  • input: name and/or age that you want to modify
  1. DELETE /delete/ID
  • Desc: Delete the user identified by their ID

Installation

Go(Gin + Mysql)

Go(Fiber + MongoDB)

Python(Django + Mysql)

Python(Flask + MongoDB)

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

License

This project is licensed under the MIT License.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published