{
 "openapi": "3.1.0",
 "info": {
  "title": "MCServers.au open data",
  "version": "1",
  "description": "Read-only static JSON of listed Australian and New Zealand Minecraft servers. No key, CORS enabled, refreshed every 30 minutes. Please cache; do not poll faster than every 15 minutes."
 },
 "servers": [
  {
   "url": "https://mcservers.au/api"
  }
 ],
 "paths": {
  "/servers.json": {
   "get": {
    "summary": "All listed servers",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "count": {
           "type": "integer"
          },
          "servers": {
           "type": "array",
           "items": {
            "$ref": "https://mcservers.au/api/schema.json"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/servers/{slug}.json": {
   "get": {
    "summary": "One server",
    "parameters": [
     {
      "name": "slug",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "server": {
           "$ref": "https://mcservers.au/api/schema.json"
          }
         }
        }
       }
      }
     },
     "404": {
      "description": "Unknown slug"
     }
    }
   }
  }
 }
}