{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/ANDREASFRIES/AAS-API/1"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/ANDREASFRIES/AAS/1.0.0"}],"info":{"version":"1","title":"Administration Shell APIs","description":"The API for the AAS IIOT project"},"paths":{"/aas/getAll":{"get":{"tags":["Asset Integrator"],"description":"returns all registered administration shells","operationId":"getAllAAS","responses":{"200":{"description":"Get all devices in the registry","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","format":"aas"}}}}}}}},"/aas/{semanticId}":{"get":{"tags":["Asset Integrator"],"description":"returns a single registered administration shell","operationId":"getSingleAAS","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successfully get one aas"}}}},"/aas/create":{"post":{"tags":["Asset Integrator"],"operationId":"newAAS","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"x-swagger-router-controller":"ZWave"}},"/aas/update/{semanticId}":{"post":{"tags":["Asset Integrator"],"description":"update AAS in the registry","operationId":"updateAAS","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/aas/delete/{semanticId}":{"post":{"tags":["Asset Integrator"],"operationId":"getSwitchState","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceState"}}}}},"x-swagger-router-controller":"ZWave"}},"/control/aas/getAll":{"get":{"tags":["Control Center"],"description":"returns all registered administration shells","operationId":"getDevices","responses":{"200":{"description":"All the devices","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"aas"}}}}}}}},"/control/aas/{semanticId}":{"get":{"tags":["Control Center"],"description":"returns a single registered administration shell","operationId":"getSingleActiveAAS","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"successfully get one aas"}}}},"/control/aas/create":{"post":{"tags":["Control Center"],"operationId":"newActiveAAS","responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}},"x-swagger-router-controller":"ZWave"}},"/control/aas/update/{semanticId}":{"post":{"tags":["Control Center"],"description":"sets a dimmer to a specific value on a timer","operationId":"updateActiveAAS","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"}}}}}}},"/control/aas/delete/{semanticId}":{"post":{"tags":["Control Center"],"operationId":"deleteActiveAAS","parameters":[{"name":"semanticId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceState"}}}}},"x-swagger-router-controller":"ZWave"}}},"components":{"schemas":{"LightingZone":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"deviceId":{"type":"integer","format":"int32"},"deviceType":{"type":"string","enum":["dimmer","switch"]},"zone":{"type":"string"}}},"LightingZoneStatus":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUpdate":{"type":"string","format":"date-time"},"level":{"type":"integer","format":"int32"}},"description":"the status of the lighting zone."},"TemperatureSummary":{"type":"object","properties":{"zones":{"type":"array","items":{"$ref":"#/components/schemas/TemperatureZone"}},"zoneStatus":{"type":"array","items":{"$ref":"#/components/schemas/TemperatueZoneStatus"}}},"description":"ok"},"TemperatureZone":{"type":"object","required":["id","name"],"properties":{"id":{"type":"integer","format":"int32","description":"the unique identifier for the zone"},"name":{"type":"string"},"inputPosition":{"type":"integer","format":"int32"},"outputPosition":{"type":"integer","format":"int32"},"zone":{"type":"string"}},"description":"a single temperature zone"},"TemperatueZoneStatus":{"type":"object","required":["id","timestamp","value"],"properties":{"id":{"type":"string","description":"the unique identifier for the zone"},"name":{"type":"string","description":"the name of the zone"},"value":{"type":"number","format":"double","description":"the temperature in the zone"},"units":{"type":"string","description":"the temperature units","enum":["celsius","fahrenheit"],"default":"fahrenheit"},"timestamp":{"type":"string","format":"date-time","description":"the timestamp when the temperature was measured"}},"description":"status of a single zone"},"ApiResponse":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string","example":"everything is ok"}}},"HeaterState":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string"}}},"DeviceState":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"lastUpdate":{"type":"string","format":"date-time"},"level":{"type":"integer","format":"int32"}}},"ForecastResponse":{"type":"object","properties":{"city":{"$ref":"#/components/schemas/City"},"values":{"type":"array","items":{"$ref":"#/components/schemas/Forecast"}}}},"Forecast":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"pressure":{"type":"number","format":"double"},"humidity":{"type":"integer","format":"int32"},"windSpeed":{"type":"number","format":"double"},"clouds":{"type":"integer","format":"int32"},"temperature":{"$ref":"#/components/schemas/ForecastTemperature"},"weather":{"$ref":"#/components/schemas/WeatherForecast"}}},"City":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"country":{"type":"string"}}},"ForecastTemperature":{"type":"object","properties":{"low":{"type":"number","format":"double"},"high":{"type":"number","format":"double"},"morning":{"type":"number","format":"double"},"day":{"type":"number","format":"double"},"evening":{"type":"number","format":"double"},"night":{"type":"number","format":"double"}}},"WeatherForecast":{"type":"object","properties":{"summary":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"}}},"DeviceRegistrationInfo":{"type":"object","properties":{"uri":{"type":"string","format":"uri","example":"http://10.0.0.220:8080"},"id":{"type":"string","format":"uuid","example":"0729a580-2240-11e6-9eb5-0002a5d5c51b"}}}}}}