{
  "openapi": "3.1.1",
  "info": {
    "title": "CitySpark QR Code Service",
    "description": "Generates QR codes for CitySpark Portal and ListView products. No authentication required.",
    "contact": {
      "name": "CitySpark Support",
      "url": "https://cityspark.com",
      "email": "support@CitySpark.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "http://qrbeta.cityspark.com/"
    }
  ],
  "paths": {
    "/p/{format}/{slug}": {
      "get": {
        "tags": [
          "Program"
        ],
        "summary": "Generate a QR code for a Portal page",
        "description": "Given a portal slug, resolves the full client URL and returns a QR code image.",
        "operationId": "GetPortalQrCodeNoPath",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/p/{format}/{slug}/{path}": {
      "get": {
        "tags": [
          "Program"
        ],
        "summary": "Generate a QR code for a Portal page",
        "description": "Given a portal slug and path, resolves the full client URL and returns a QR code image.",
        "operationId": "GetPortalQrCode",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/l/{format}/{slug}/{path}": {
      "get": {
        "tags": [
          "CitySpark.QR"
        ],
        "summary": "Generate a QR code for a ListView page",
        "description": "Given a listview slug and path, resolves the full client URL and returns a QR code image.",
        "operationId": "GetListViewQrCode",
        "parameters": [
          {
            "name": "format",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Program"
    },
    {
      "name": "CitySpark.QR"
    }
  ]
}