Building a RESTful API using go-swagger
summary
Builds a REST API by writing a Swagger spec, using go-swagger to generate a Go server skeleton and client, and splitting spec files then stitching them with a Node JSON tool; implements a send-email API with a circuit breaker around Mailgun/SendGrid-backed email providers plus a mock for tests; runs unit and functional tests (functional tests hit the actual container), packages into an Alpine Docker image via a two-stage build, pushes to Docker Hub and deploys to PodSpace/Kubernetes; works end-to-end with some deployment flakiness noted.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:04Swagger - Interface Definition Language
- 7:21Swagger Specification - Composition / Aggregation
- 12:46Code Review
- 17:15Functional Tests
- 21:47Alpine Linux Distribution
related talks
31mImplementing RESTful APIs
21mBuilding APIs in Go The Stack Without a Framework
01h 03mGo Microservices in Containers
24m"Building Scalable Microservices with Go"
35mAPI-First! Contract-First! Make API development great again!
35mDeveloping Go apps with Docker
36mSIG API Machinery Deep Dive
27mGiving Cloud Foundry APIs Their Swagger Back
