{
 "openapi": "3.0.3",
 "info": {
  "title": "infra-fixture API (FIXTURE)",
  "version": "1.0.0",
  "description": "Fake API of the infra-fixture positive-control site. Nothing here fetches anything."
 },
 "servers": [
  {
   "url": "https://infra-fixture.bhacky.com"
  }
 ],
 "paths": {
  "/api/v1/users": {
   "get": {
    "summary": "List users",
    "responses": {
     "200": {
      "description": "users"
     }
    }
   }
  },
  "/api/v1/users/{id}": {
   "get": {
    "summary": "Get user",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "user"
     }
    }
   }
  },
  "/api/v1/items/{id}": {
   "get": {
    "summary": "Get item",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "item"
     }
    }
   }
  },
  "/api/v1/import": {
   "post": {
    "summary": "Import items from a URL (fixture: never fetched)",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "import_url": {
          "type": "string",
          "format": "uri"
         }
        }
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "accepted"
     }
    }
   }
  },
  "/api/v1/webhooks": {
   "post": {
    "summary": "Register a webhook (fixture: never called)",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "callback_url": {
          "type": "string",
          "format": "uri"
         }
        }
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "created"
     }
    }
   }
  },
  "/internal/admin/users": {
   "get": {
    "summary": "Admin: list users",
    "security": [
     {
      "bearer": []
     }
    ],
    "responses": {
     "401": {
      "description": "auth required"
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  }
 }
}
