Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up an Azure storage account for the project #474

Open
kallewesterling opened this issue Jun 5, 2024 · 6 comments
Open

Set up an Azure storage account for the project #474

kallewesterling opened this issue Jun 5, 2024 · 6 comments
Assignees

Comments

@kallewesterling
Copy link
Collaborator

Set up an Azure storage account for the project

@chrisdburr
Copy link
Collaborator

@kallewesterling, what's this issue for? Please can you add further information about why this is needed.

@kallewesterling
Copy link
Collaborator Author

Currently, I believe that the "screenshots" taken by the site are saved to @RichGriff's personal Azure storage account (if I remember correctly) so we need to set up Azure storage and connect that to the frontend codebase.

@RichGriff
Copy link
Collaborator

This is correct. I have added some guidance to the other issue for documenting this process.

@cptanalatriste cptanalatriste added this to the Third TEA Workshop milestone Jul 5, 2024
@chrisdburr
Copy link
Collaborator

@cptanalatriste, is there an update on this please?

@cptanalatriste
Copy link
Collaborator

@chrisdburr this one has been de-prioritised many times: didn't have a chance to work on it. If you want, I can pause my work on collaboration+websockets and jump into this

@cptanalatriste
Copy link
Collaborator

@RichGriff We have extended the API to support the upload of images to an Azure Storage Account, now hosted under the Assurance Platform subscription. For uploading an image, do the following request: POST https://staging-eap-backend.azurewebsites.net/api/cases/<assurance-case-id>/image, sending the file in the media key and, as usual, the authorization token as a header. The response looks like this:

Image

For retrieving the URL of the image associated to a case, just do a GET https://staging-eap-backend.azurewebsites.net/api/cases/<assurance-case-id>/image, again including the authorization token in the header. The response looks like this:

Image

Please let me know if you need further development in the server side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment