{"components":{"headers":{"AccessControlAllowOrigin":{"description":"Any origin may read the file from a page.","schema":{"const":"*","type":"string"}},"CacheControlFile":{"description":"A browser or cache may keep the file for an hour.","schema":{"const":"public, max-age=3600","type":"string"}},"CacheControlMissing":{"description":"A missing file is never cached.","schema":{"const":"no-store","type":"string"}},"XRobotsTag":{"description":"Search engines are told not to index the file.","schema":{"const":"noindex","type":"string"}}},"parameters":{"code":{"description":"The publisher's code for the hospital, as the Queensland list gives it.","in":"path","name":"code","required":true,"schema":{"pattern":"^[A-Za-z0-9]+(?![\\s\\S])$","type":"string"}},"kind":{"description":"Which publisher table the category comes from.","in":"path","name":"kind","required":true,"schema":{"enum":["urgency","procedure","specialty"],"type":"string"}},"slug":{"description":"The slug in the file's address.","in":"path","name":"slug","required":true,"schema":{"pattern":"^[a-z0-9]+(-[a-z0-9]+)*(?![\\s\\S])$","type":"string"}}},"responses":{"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such file. The Worker answers with JSON in place of the site page.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlMissing"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"NotFoundHead":{"description":"No such file. A HEAD request has no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlMissing"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}}},"schemas":{"Error":{"additionalProperties":false,"properties":{"error":{"const":"not found","type":"string"}},"required":["error"],"type":"object"}}},"info":{"description":"Each path is one family of file under /data-api/. Each response is valid against the JSON Schema for its family, published at the address its $id names. The Worker lets any origin read the files and answers a preflight request with 204, the methods GET, HEAD and OPTIONS, and no body. It sends X-Robots-Tag: noindex on every answer under /data-api/, and lets a browser keep a file for an hour. A missing file returns 404 with a JSON body and is never cached. The credits file gives the publisher, licence and citation for each source of the data.","summary":"The JSON files behind the Surgery Waits pages.","title":"Surgery Waits data files","version":"1"},"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","openapi":"3.1.0","paths":{"/data-api/credits.json":{"get":{"operationId":"getCredits","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/credits.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The credits file"},"head":{"operationId":"headCredits","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The credits file"}},"/data-api/health-services.json":{"get":{"operationId":"getHealthServices","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/health-service-index.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The health services file"},"head":{"operationId":"headHealthServices","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The health services file"}},"/data-api/health-services/{slug}.json":{"get":{"operationId":"getHealthServiceFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/health-service.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the health services folder"},"head":{"operationId":"headHealthServiceFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the health services folder"}},"/data-api/hospitals.json":{"get":{"operationId":"getHospitals","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/hospital-index.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The hospitals file"},"head":{"operationId":"headHospitals","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The hospitals file"}},"/data-api/hospitals/{slug}.json":{"get":{"operationId":"getHospitalFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/hospital.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the hospitals folder"},"head":{"operationId":"headHospitalFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the hospitals folder"}},"/data-api/index.json":{"get":{"operationId":"getIndex","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/index.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The index file"},"head":{"operationId":"headIndex","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The index file"}},"/data-api/queensland.json":{"get":{"operationId":"getQueensland","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/queensland-index.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The queensland file"},"head":{"operationId":"headQueensland","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The queensland file"}},"/data-api/queensland/{code}.json":{"get":{"operationId":"getQueenslandFile","parameters":[{"$ref":"#/components/parameters/code"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/queensland.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the queensland folder"},"head":{"operationId":"headQueenslandFile","parameters":[{"$ref":"#/components/parameters/code"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the queensland folder"}},"/data-api/rules.json":{"get":{"operationId":"getRules","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/rules.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The rules file"},"head":{"operationId":"headRules","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The rules file"}},"/data-api/states/{slug}.json":{"get":{"operationId":"getStateFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/state.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the states folder"},"head":{"operationId":"headStateFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the states folder"}},"/data-api/suburbs.json":{"get":{"operationId":"getSuburbs","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/suburbs.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The suburbs file"},"head":{"operationId":"headSuburbs","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The suburbs file"}},"/data-api/surgeries.json":{"get":{"operationId":"getSurgeries","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/surgery-index.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"The surgeries file"},"head":{"operationId":"headSurgeries","responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"The surgeries file"}},"/data-api/surgeries/{kind}/{slug}.json":{"get":{"operationId":"getSurgeryFile","parameters":[{"$ref":"#/components/parameters/kind"},{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/surgery.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the surgeries folder"},"head":{"operationId":"headSurgeryFile","parameters":[{"$ref":"#/components/parameters/kind"},{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the surgeries folder"}},"/data-api/trends/{slug}.json":{"get":{"operationId":"getTrendFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"https://surgerywaits.au/contract/trend.schema.json"}}},"description":"The file, which is valid against the schema its family has in /contract/.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"Content-Type":{"description":"The body is JSON in UTF-8.","schema":{"const":"application/json; charset=utf-8","type":"string"}},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFound"}},"summary":"One file of the trends folder"},"head":{"operationId":"headTrendFile","parameters":[{"$ref":"#/components/parameters/slug"}],"responses":{"200":{"description":"The headers of the file, with no body.","headers":{"Access-Control-Allow-Origin":{"$ref":"#/components/headers/AccessControlAllowOrigin"},"Cache-Control":{"$ref":"#/components/headers/CacheControlFile"},"X-Robots-Tag":{"$ref":"#/components/headers/XRobotsTag"}}},"404":{"$ref":"#/components/responses/NotFoundHead"}},"summary":"One file of the trends folder"}}},"servers":[{"url":"https://surgerywaits.au"}]}
