Learn Go · Part 11 of 11

Building an API

Putting it all together and building a REST API with only the standard library: routing, JSON, token authentication middleware and request context.

Its own 8 min video · 8 topics · 10 exercises

This part is in the full course

The first 4 parts of Learn Go are free. The rest, and the extras, come with the full course.

Create an account

What's in it

  • What we're building
  • The fake database
  • Starting the server
  • Routing by method
  • Getting a profile
  • Updating a profile
  • Authentication middleware
  • Request context