+{"openapi":"3.0.1","info":{"title":"Model Repository","description":"DataCROP Model Repository RESTful API","contact":{"name":"DataCROP Development Team","url":"http://datacrop.eu/","email":"datacrop@googlegroups.com"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0"},"version":"1.0.0"},"servers":[{"url":"http://localhost:8087","description":"Generated server url"}],"tags":[{"name":"System","description":"An Internet-Of-Things System that is monitored for various purposes."}],"paths":{"/model_repository/v1/asset_management/system/{systemID}/id/":{"get":{"tags":["System"],"summary":"Retrieve System By UUID","description":"Retrieves an existing System using its UUID as unique identifier.","operationId":"retrieveSystemByID","parameters":[{"name":"systemID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad_Request ~ Erroneous request operation on System to be aborted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"OK ~ System has been successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemResponseDto"}}}},"404":{"description":"Not_Found ~ No System with the specified identifier has been found available to retrieve.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"put":{"tags":["System"],"summary":"Update System By UUID","description":"Updates an existing System using its UUID as unique identifier.","operationId":"updateSystem","parameters":[{"name":"systemID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad_Request ~ Erroneous request operation on System to be aborted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"409":{"description":"Conflict ~ System update aborted due to Name conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"OK ~ System has been successfully updated.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SystemResponseDto"}}}}},"404":{"description":"Not_Found ~ No System with the specified identifier has been found available to update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"delete":{"tags":["System"],"summary":"Delete System By UUID","description":"Deletes an existing System using its UUID as unique identifier.","operationId":"deleteSystem","parameters":[{"name":"systemID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad_Request ~ Erroneous request operation on System to be aborted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"Not_Found ~ No System with the specified identifier has been found available to delete.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"OK ~ System has been successfully deleted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemResponseDto"}}}}}}},"/model_repository/v1/asset_management/system/":{"get":{"tags":["System"],"summary":"Retrieve all Systems","description":"Retrieves all Systems ever persisted.","operationId":"retrieveAllSystems","parameters":[{"name":"page","in":"query","description":"Page number, default is 0","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","description":"Size of page, default is 10","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"Not_Found ~ No Systems have been found available to retrieve.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"OK ~ Systems have been successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SystemResponseDto"}}}}}}},"post":{"tags":["System"],"summary":"Persist new System","description":"Persists a new System.","operationId":"createSystem","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad_Request ~ Erroneous request operation on System to be aborted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"CREATED ~ System has been successfully created.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SystemResponseDto"}}}}},"409":{"description":"Conflict ~ System creation aborted due to Name conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"delete":{"tags":["System"],"summary":"Delete All Systems","description":"Deletes all Systems that have been ever persisted.","operationId":"deleteAllSystems","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"204":{"description":"OK ~ All Systems have been successfully deleted.","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Not_Found ~ No System has been found available to delete.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/model_repository/v1/asset_management/system/{name}/name/":{"get":{"tags":["System"],"summary":"Retrieve System By Name","description":"Retrieves an existing System using its Name as unique identifier.","operationId":"retrieveSystemByName","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad_Request ~ Erroneous request operation on System to be aborted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"description":"Internal_Server_Error ~ Internal Server Error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"OK ~ System has been successfully retrieved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemResponseDto"}}}},"404":{"description":"Not_Found ~ No System with the specified identifier has been found available to retrieve.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}}},"components":{"schemas":{"ErrorMessage":{"type":"object","properties":{"httpCode":{"type":"integer","format":"int32"},"httpText":{"type":"string"},"message":{"type":"string"},"messageKey":{"type":"string"},"href":{"type":"string"},"timestamp":{"type":"string","format":"date-time"}}},"GeoLocationRequestDto":{"type":"object","properties":{"latitude":{"type":"number","format":"double","writeOnly":true},"longitude":{"type":"number","format":"double","writeOnly":true}}},"LocationRequestDto":{"type":"object","properties":{"geoLocation":{"$ref":"#/components/schemas/GeoLocationRequestDto"},"virtualLocation":{"type":"string"},"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"}}},"SystemRequestDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationRequestDto"},"organization":{"type":"string"},"additionalInformation":{"uniqueItems":true,"type":"array","items":{"type":"object"}}}},"GeoLocationResponseDto":{"type":"object","properties":{"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"}}},"LocationResponseDto":{"type":"object","properties":{"geoLocation":{"$ref":"#/components/schemas/GeoLocationResponseDto"},"virtualLocation":{"type":"string"}}},"SystemResponseDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"location":{"$ref":"#/components/schemas/LocationResponseDto"},"organization":{"type":"string"},"additionalInformation":{"uniqueItems":true,"type":"array","items":{"type":"object"}},"creationDate":{"type":"string","format":"date-time"},"latestUpdateDate":{"type":"string","format":"date-time"}}}}}}
0 commit comments