{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/HyunSeung94/5D.Sensor.ETRI/1.0.0"}],"info":{"title":"5D 센서 연동 API","version":"1.0.0","description":"5D ETRI와 센서 연동을 위한 API","contact":{"email":"khs1994@metabuild.co.kr"}},"tags":[{"name":"센서"}],"components":{"schemas":{"sensor":{"description":"센서 프로파일","type":"object","properties":{"sensor_id":{"type":"string","description":"센서 ID"},"facility_id":{"type":"string","description":"시설물 ID"},"location":{"type":"string","description":"센서 위치"},"unit":{"type":"string","description":"센싱단위"},"period":{"type":"string","description":"센싱주기"}}},"sensor-status":{"description":"센서 상태","type":"object","properties":{"sensor_id":{"type":"string","description":"센서 ID"},"status":{"type":"string","description":"상태정보"}}},"sensor-data":{"description":"센서 데이터","type":"object","properties":{"sensor_id":{"type":"string","description":"센서 ID"},"timestamp":{"type":"string","description":"관측시각"},"value":{"type":"integer","description":"값"}}}}},"paths":{"/sensor":{"post":{"tags":["센서"],"summary":"센서 프로파일 추가","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sensor"}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}}},"/sensor/status":{"post":{"tags":["센서"],"summary":"센서 상태 입력","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sensor-status"}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}}},"/sensor/data":{"post":{"tags":["센서"],"summary":"센서 데이터 입력","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sensor-data"}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}}}}}