{
  "openapi": "3.0.3",
  "info": {
    "title": "Kirana Projects API (sample)",
    "version": "1.0.0",
    "description": "Sample read-only API used in the Qlar docs. Returns the status of a Kirana Group project."
  },
  "servers": [
    {
      "url": "https://stpusakaappassetprod.blob.core.windows.net/docs-media/samples/kirana-api"
    }
  ],
  "paths": {
    "/projects/{projectCode}.json": {
      "get": {
        "operationId": "get_project_status",
        "summary": "Get project status",
        "description": "Returns the status, progress, budget and current approval stage of one Kirana project. Use it when the user asks about a project by its code, for example KG-2041.",
        "parameters": [
          {
            "name": "projectCode",
            "in": "path",
            "required": true,
            "description": "Project code in the form KG-0000, for example KG-2041.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project status"
          },
          "404": {
            "description": "Unknown project code"
          }
        }
      }
    },
    "/projects/index.json": {
      "get": {
        "operationId": "list_projects",
        "summary": "List active projects",
        "description": "Returns the codes, names and statuses of all active Kirana projects.",
        "responses": {
          "200": {
            "description": "Project list"
          }
        }
      }
    }
  }
}