{
  "openapi": "3.1.0",
  "info": {
    "title": "Thanet gig feeds",
    "version": "1",
    "description": "Live music, club nights and open mics in Thanet and nearby, read from the venues' own listings every 6 hours. Read-only, no key."
  },
  "externalDocs": {
    "url": "https://beigethreat.com/gigs/about/#feeds"
  },
  "servers": [
    {
      "url": "https://beigethreat.com"
    }
  ],
  "paths": {
    "/gigs.ics": {
      "get": {
        "operationId": "gigCalendar",
        "summary": "Gigs as a calendar to subscribe to",
        "description": "Every gig from 7 days ago to a year ahead, with regular nights for a venue or for open mics.",
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A part of Thanet, as the gig list's Where. Ignored when venue is set.",
            "schema": {
              "type": "string",
              "enum": [
                "thanet",
                "margate",
                "broadstairs",
                "ramsgate",
                "rest-of-thanet",
                "further-afield"
              ]
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "One venue's id: the last part of its page's address, /gigs/<id>/. 404 when no venue shown has that id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "description": "One kind of night.",
            "schema": {
              "type": "string",
              "enum": [
                "gig",
                "club-night",
                "open-mic"
              ]
            }
          },
          {
            "name": "ids",
            "in": "query",
            "description": "Comma-separated gig ids: a saved list. where, venue and kind are then ignored.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An iCalendar file.",
            "content": {
              "text/calendar": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No venue shown has that id.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/gigs/feed.xml": {
      "get": {
        "operationId": "gigRss",
        "summary": "Gigs to come, most recently listed first, as RSS 2.0",
        "description": "At most 100 items.",
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A part of Thanet, as the gig list's Where. Ignored when venue is set.",
            "schema": {
              "type": "string",
              "enum": [
                "thanet",
                "margate",
                "broadstairs",
                "ramsgate",
                "rest-of-thanet",
                "further-afield"
              ]
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "One venue's id: the last part of its page's address, /gigs/<id>/. 404 when no venue shown has that id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A RSS 2.0 document.",
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No venue shown has that id.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/gigs/feed.json": {
      "get": {
        "operationId": "gigJsonFeed",
        "summary": "Gigs to come, most recently listed first, as JSON Feed 1.1",
        "description": "At most 100 items.",
        "parameters": [
          {
            "name": "where",
            "in": "query",
            "description": "A part of Thanet, as the gig list's Where. Ignored when venue is set.",
            "schema": {
              "type": "string",
              "enum": [
                "thanet",
                "margate",
                "broadstairs",
                "ramsgate",
                "rest-of-thanet",
                "further-afield"
              ]
            }
          },
          {
            "name": "venue",
            "in": "query",
            "description": "One venue's id: the last part of its page's address, /gigs/<id>/. 404 when no venue shown has that id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON Feed 1.1 document.",
            "content": {
              "application/feed+json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No venue shown has that id.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}