Exercise: APIs and Routing
This exercise focuses on practicing routing and API-building skills.
We'll cover the following
Problem statement
Add a new route to our graceful server to search for and return a user’s name and age. The users are stored in the users.go
file in the servers
package. Don’t edit this file. Instead, add a route in server.go
and then add the handler for the route in handlers.go
. You should be able to search either by name or age.
Get hands-on with 1200+ tech skills courses.