Solution 2: Working with gRPC
Let’s solve the challenge set in the previous lesson.
We'll cover the following
Solution
Here is the updated gServer.go
code converted into a RESTful server. We have a RESTful server that listens on the specified port and provides the same functionality as the gRPC server but using HTTP endpoints. To access the endpoints using HTTP GET requests, open a new terminal window and copy and paste the curl
commands below:
Get hands-on with 1400+ tech skills courses.