The aim of this video is to show how to leverage HTTP verbs, status codes, and URIs to implement a REST API that offers basic CRUD functionality.
- [Instructor] Hi, in this video we will see…how to implement a simple REST API.…And this is what we're going to take a look at…in this video.…We will be using the request path…and query parameters to implement our REST API…We will also be using correct HTTP status codes.…For our REST API, we will be using different HTTP verbs…such as get, put, post, and delete,…to implement the REST API that can store,…update and retrieve books.…
So enough talking, let's switch to code.…What I've done here is already prepared the code…we've been implementing throughout the last two videos.…We have our simple HTTP server, and we have the means…to marshal and unmarshal Go structures to and from JSON.…First of all, I will add two new endpoints…to our HTTP server, to store and retrieve books,…and to retrieve them by ISBN.…Let's do this.…
So basically I've added two REST endpoints now.…The first one will be used to retrieve all the books…and to store books.…The second one will be used to retrieve individual books…by ISBN, to update them, and to delete them.…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Implementing Go HTTP Server
- JSON marshalling and unmarshalling of Go structs
- Implementing a simple REST API
- Using Docker workflows and commands
- Building a naïve Docker image
- Running a containerized Go microservice
- Kubernetes architecture and concepts
- Deploying a Go microservice to Kubernetes
- Implementing service descriptors
- Performing rolling updates