Shared-Reality-Lab / IMAGE-server

IMAGE project server components
Other
2 stars 7 forks source link

Include the Monarch link app as a service on IMAGE-server #894

Closed VenissaCarolQuadros closed 1 month ago

VenissaCarolQuadros commented 1 month ago

This PR merges a containerized version of the Monarch web application that links the IMAGE-TactileAuthoring tool to the Monarch client.

As per discussions, this application has been made into a service on the IMAGE-server. New channels can be created and existing channels can be updated by the authoring tool by posting to https://monarch.unicorn.cim.mcgill.ca/create/. The JSON can be accessed by the Monarch client by getting from https://monarch.unicorn.cim.mcgill.ca/display/. Resolves #888.

Testing:

Required Information

Coding/Commit Requirements

New Component Checklist (mandatory for new microservices)

OR

VenissaCarolQuadros commented 1 month ago

I ran additional tests with POST requests with incorrect/ omitted fields. It now returns 400 in these cases.

VenissaCarolQuadros commented 1 month ago

Made the requested changes. I also noticed that I was not saving 'title' to JSON- I've included it and also made it possible to change this when 'update/' is called.

Also, an exception was being raised when 'display/' was called on a valid ID that didn't exist in the JSON since abort() raises an exception.