{"openapi":"3.1.0","info":{"title":"MISELA Web API","description":"Open API for querying the MISELA sea-level dataset.","version":"0.1.0"},"paths":{"/api/v1/health":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/stations":{"get":{"tags":["stations"],"summary":"Api List Stations","operationId":"api_list_stations_api_v1_stations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/stations/{station_id}":{"get":{"tags":["stations"],"summary":"Api Get Station","operationId":"api_get_station_api_v1_stations__station_id__get","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/query":{"get":{"tags":["query"],"summary":"Api Query Timeseries","operationId":"api_query_timeseries_api_v1_query_get","parameters":[{"name":"station_id","in":"query","required":true,"schema":{"type":"string","description":"MISELA station identifier","title":"Station Id"},"description":"MISELA station identifier"},{"name":"start","in":"query","required":true,"schema":{"type":"string","description":"Start time in ISO 8601 format","title":"Start"},"description":"Start time in ISO 8601 format"},{"name":"end","in":"query","required":true,"schema":{"type":"string","description":"End time in ISO 8601 format","title":"End"},"description":"End time in ISO 8601 format"},{"name":"variable","in":"query","required":false,"schema":{"type":"string","description":"Variable to query","default":"nslott","title":"Variable"},"description":"Variable to query"},{"name":"qc_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Optional QC value to retain, for example 1.","title":"Qc Filter"},"description":"Optional QC value to retain, for example 1."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/download":{"get":{"tags":["download"],"summary":"Download Query Result","operationId":"download_query_result_api_v1_download_get","parameters":[{"name":"station_id","in":"query","required":true,"schema":{"type":"string","description":"MISELA station identifier","title":"Station Id"},"description":"MISELA station identifier"},{"name":"start","in":"query","required":true,"schema":{"type":"string","description":"Start time in ISO 8601 format","title":"Start"},"description":"Start time in ISO 8601 format"},{"name":"end","in":"query","required":true,"schema":{"type":"string","description":"End time in ISO 8601 format","title":"End"},"description":"End time in ISO 8601 format"},{"name":"variable","in":"query","required":false,"schema":{"type":"string","description":"Variable to export","default":"nslott","title":"Variable"},"description":"Variable to export"},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Output format: csv, json, netcdf","default":"csv","title":"Format"},"description":"Output format: csv, json, netcdf"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/availability":{"get":{"tags":["availability"],"summary":"Get Availability","description":"Return stations located inside a rectangular area and temporally overlapping\nthe requested interval.\n\nTemporal overlap follows option B:\n\n    station.start_time <= requested_end\n    station.end_time >= requested_start\n\nThis means that a station is returned even if it covers only part of the\nrequested time interval.","operationId":"get_availability_api_v1_availability_get","parameters":[{"name":"min_lat","in":"query","required":true,"schema":{"type":"number","description":"Minimum latitude of the search box.","title":"Min Lat"},"description":"Minimum latitude of the search box."},{"name":"max_lat","in":"query","required":true,"schema":{"type":"number","description":"Maximum latitude of the search box.","title":"Max Lat"},"description":"Maximum latitude of the search box."},{"name":"min_lon","in":"query","required":true,"schema":{"type":"number","description":"Minimum longitude of the search box.","title":"Min Lon"},"description":"Minimum longitude of the search box."},{"name":"max_lon","in":"query","required":true,"schema":{"type":"number","description":"Maximum longitude of the search box.","title":"Max Lon"},"description":"Maximum longitude of the search box."},{"name":"start","in":"query","required":true,"schema":{"type":"string","description":"Start datetime of the requested interval.","title":"Start"},"description":"Start datetime of the requested interval."},{"name":"end","in":"query","required":true,"schema":{"type":"string","description":"End datetime of the requested interval.","title":"End"},"description":"End datetime of the requested interval."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/download-area":{"get":{"tags":["download-area"],"summary":"Download Area","description":"Download data for all stations in a rectangle and time interval.\n\nThe response is a ZIP archive containing one file per station and a\nmetadata.json file describing the request.\n\nSupported formats:\n\n- json: one JSON file per station;\n- csv: one CSV file per station;\n- netcdf: one NetCDF file per station.","operationId":"download_area_api_v1_download_area_get","parameters":[{"name":"min_lat","in":"query","required":true,"schema":{"type":"number","description":"Minimum latitude of the search box.","title":"Min Lat"},"description":"Minimum latitude of the search box."},{"name":"max_lat","in":"query","required":true,"schema":{"type":"number","description":"Maximum latitude of the search box.","title":"Max Lat"},"description":"Maximum latitude of the search box."},{"name":"min_lon","in":"query","required":true,"schema":{"type":"number","description":"Minimum longitude of the search box.","title":"Min Lon"},"description":"Minimum longitude of the search box."},{"name":"max_lon","in":"query","required":true,"schema":{"type":"number","description":"Maximum longitude of the search box.","title":"Max Lon"},"description":"Maximum longitude of the search box."},{"name":"start","in":"query","required":true,"schema":{"type":"string","description":"Start datetime of the requested interval.","title":"Start"},"description":"Start datetime of the requested interval."},{"name":"end","in":"query","required":true,"schema":{"type":"string","description":"End datetime of the requested interval.","title":"End"},"description":"End datetime of the requested interval."},{"name":"variable","in":"query","required":false,"schema":{"type":"string","description":"Variable to extract.","default":"nslott","title":"Variable"},"description":"Variable to extract."},{"name":"format","in":"query","required":false,"schema":{"type":"string","description":"Output format. Supported values: json, csv, netcdf.","default":"json","title":"Format"},"description":"Output format. Supported values: json, csv, netcdf."},{"name":"qc_filter","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Optional QC value filter.","title":"Qc Filter"},"description":"Optional QC value filter."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}