You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an endpoint to upload images to local storage. In a future version we will upload it to AWS S3,
Requirements
Store images on application properties new attribute exercise.path. It should read value from environment variable EXERCISE_PATH or fallback to a defaul.
Accept only images of formats jpegand png
Maximum of 5 images per upload
Max size of each image is 1MB
Each image should be renamed with a unique name that is defined by a UUID
The return should contain an array with the information of the created images. Each element of this array should be an object with the attributes: name and uri. The name attribute refers to the name of the image and uri is the endpoint to download the resource.
Create endpoint to download image stored on EXERCISE_PATH from resource api/v1/exercises/images/<image-id>
The text was updated successfully, but these errors were encountered:
Task
Create an endpoint to upload images to local storage. In a future version we will upload it to AWS S3,
Requirements
exercise.path
. It should read value from environment variableEXERCISE_PATH
or fallback to a defaul.jpeg
andpng
name
anduri
. Thename
attribute refers to the name of the image anduri
is the endpoint to download the resource.EXERCISE_PATH
from resourceapi/v1/exercises/images/<image-id>
The text was updated successfully, but these errors were encountered: