---
title: "Swagger tutorial for REST API documentation"
date: 2015-09-14
description: "Swagger is a REST specification that allows you to generate interactive API documentation. I created a tutorial for using Swagger in the API doc course I’m working on. <div..."
canonical_url: https://idratherbewriting.com/2015/09/14/swagger-tutorial/index.html
---

> For AI agents: a documentation index is available at https://idratherbewriting.com/llms.txt. Markdown versions of all pages are available by appending .md to any page URL.

# Swagger tutorial for REST API documentation

> I updated the Swagger tutorial in my API doc course. If you'd like to learn more about Swagger, you can follow along here for step-by-step instruction.

Swagger is a REST specification that allows you to generate interactive API documentation. I created a [tutorial for using Swagger](https://idratherbewriting.com/learnapidoc/pubapis_swagger.html) in the API doc course I’m working on.

In my Swagger tutorial, I show you how to use the Swagger Petstore example as well as how to build your own Swagger output. If you go through the [tutorial](https://idratherbewriting.com/learnapidoc/pubapis_swagger.html), let me know if you have any feedback.
