This is a sample project implemented with Echo, designed for developing and learning FastAPI. Users can take this project and expand it based on their needs.
Follow these steps to run the project:
- Ensure that Go is installed on your system.
- Navigate to the
cmd
directory. - Run the
main.go
file:
cd src/cmd
go run main.go
List of defined routes in this project:
- POST
/products
→ Create a new product - GET
/products
→ Retrieve the list of products - GET
/products/:id
→ Get details of a specific product by ID - PUT
/products/:id
→ Update a product - DELETE
/products/:id
→ Delete a product
- GET
/test
→ A simple test route - POST
/name
→ Process input data - POST
/bind
→ Check data binding capability
- Echo as the web framework
- Go Modules for dependency management
- To customize the project, you can modify the API routes and handlers in
src/api/
. - This project is a simple example and does not include advanced features like authentication or a database, but you can add them as needed.