Simple Go REST API Skeleton
I created this simple project to illustrate how an API can be structured, specially when the API responsability includes the coordination and calls to other APIs. I'm not including (at least now) any architectural o reliability best practices, such as circuit-brakers. The intended audience is new programmers or programmers new to the Go language on how to design production ready APIs. Yes, a hello world with steroids.
Getting Started
Simply clone this repository. This project use Go Modules, so, go mod download
will be required to download modules used in this project.
Project Structure
.
├── controller
│ └── character_controller.go
├── datasource
│ └── swapi_source.go
├── go.mod
├── go-skeleton
├── go.sum
├── main.go
├── README.md
├── request
├── response
│ └── response.go
├── routing
│ └── routes.go
├── service
│ └── character_service.go
└── util
└── client.go
Built With
- Go - The programming language used
- Gin - Gin web framwork
- Visual Studio Code - Amazing IDE
Authors
- Marcos Torres - Initial work - marcote
License
This project is licensed under the MIT License
Acknowledgments
- SWAPI creator and maintainers.