The server is available on localhost:8080. The servlet server used is Jetty
All structures are exchanged in JSON format.
- name: String representing the name of the object, shall not be null nor empty. It is unique in the store.
- description: String describing the object. Cannot be null;
- state: String representing the state of the object, shall not be null.
- description: String describing the object. Cannot be null;
- state: String representing the state of the object, shall not be null.
- objectName: String containing the name of the object;
- imageUuid: String containing the UUID of the created image;
- uuid: String containing the UUID of the created image;
- contentType: String containing the MediaType of the image
##Operations
Request: GET /objects Returns:
- OK / List of IndustrialObjectCreateRead
Request: GET /objects/{name} Returns:
- OK / IndustrialObjectCreateRead
- NOT_FOUND
Request: POST /objects Returns:
- CREATED / IndustrialObjectCreateRead
- NO_CONTENT
Request: PUT /objects/{name} Returns:
- OK / IndustrialObjectCreateRead
- NO_CONTENT
- NOT_FOUND
Request: DELETE /objects/{name} Headers: Content-Type: the type of the image Returns:
- OK / IndustrialObjectCreateRead
- NOT_FOUND
Request POST /objects/{name}/images Returns:
- CREATED / IndustrialImageCreated
- NOT_FOUND
- UNSUPPORTED_MEDIA_TYPE
Request GET /objects/{name}/images Returns:
- OK / List of IndustrialImageMetadata
Request GET /images/{uuid} Returns:
- OK / content-type / byte[]
- NOT_FOUND
Request DELETE /images/{uuid}
- OK
- NOT_FOUND