Skip to content

bristolgolang/apitutorial

Repository files navigation

API Tutorial

Hello! This workshop will focus on creating APIs using just the core library of Go.

How to learn

To get the most out of this guide, here are a couple of suggestions;

  • Follow the READMEs, exploring the code and playing with the projects you see here
  • Create your own project and copy this guide to recreate the lessons
  • Clone/fork the repo and try tweaking/breaking things
  • Follow the READMEs, but do your own thing, use different APIs, datastores, etc.

Lessons

These lessons are largely approachable in any order, provided the first lesson is understood.

This serves as a pre-cursor to the rest of the lessons, it sets up a basic hello world server.

This lesson aims to teach how to write APIs that use other APIs. Useful for writing slackbots, logic APIs that call data layer APIs, or anything else that catches your interest.

This lesson aims to teach how to write webapps, to render HTML pages using a Go server.

This lesson aims to teach how to write APIs that need to work with storage; in memory, file storage, databases, or anything else. It's recommended to understand serialising/deserialising, which is discussed in the third party API lessons.

This lesson explores the ways in which we can test our http server.

This lesson explores the ways in which we can add middleware to our http server.

Further reading

Releases

No releases published

Packages

No packages published