Solution 4: Working with REST APIs

Let’s solve the challenge set in the previous lesson.

We'll cover the following

Solution

Here are the handlers.go functions separated into individual files in the handlers directory.

Let’s test the RESTful server using curl(1). Here are the commands to run the client:

Get hands-on with 1400+ tech skills courses.