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.
Simply clone this repository. This project use Go Modules, so, go mod download
will be required to download modules used in this project.
.
├── 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
- Go - The programming language used
- Gin - Gin web framwork
- Visual Studio Code - Amazing IDE
- Marcos Torres - Initial work - marcote
This project is licensed under the MIT License
- SWAPI creator and maintainers.