This project is a simple RESTful API built using GoLang with MongoDB.
Follow these steps to run the project locally:
- Start the Server:
go run main.go
The server will start at http://localhost:8000.
- Endpoint:
GET /user
- Description: Retrieve a list of all users.
- Endpoint:
GET /user/:id
- Description: Retrieve a specific user by ID.
- Endpoint:
POST /user
- Description: Create a new user.
- Endpoint:
PUT /user/:id
- Description: Update a specific user by ID.
- Endpoint:
DELETE /user/:id
- Description: Delete a specific user by ID.
The API Postman Collection is available in the /postman-collection/ directory.
- httprouter: HTTP request router
- mgo: MongoDB driver for Go
If you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request.
Happy coding!🚀👨💻