Open MitanshuShaBa opened 9 months ago
When I am uploading a new image, I want to add some additional information along with it.
I am make a POST request on this link: https://demo.breedbase.org/brapi/v2/images With this body:
https://demo.breedbase.org/brapi/v2/images
[ { "additionalInfo": { "tags": ["string"], "observationUnitName": "string", "additionalProp3": "string" }, "imageFileName": "image_0000231.jpg", "imageFileSize": 50000, "imageHeight": 550, "imageName": "Tomato Image 1", "imageWidth": 700, "mimeType": "image/jpeg", "description": "" } ]
But in response I get the image created with the additionalInfo containing:
"additionalInfo": { "observationLevel": null, "observationUnitName": null, "tags": [] }
Due to some issue this is not storing the additionalInfo being sent.
This is experienced on demo.breedbase.org website.
Create a POST request on the breedbase instance on /images route with the given body.
/images
@MitanshuShaBa I'm wondering what would you like to store as "additionalProp3". Storing TAGs is available at the moment.
According to Prasad pkamath3@ncsu.edu They need to store trialDbId
Expected Behavior
When I am uploading a new image, I want to add some additional information along with it.
I am make a POST request on this link:
https://demo.breedbase.org/brapi/v2/images
With this body:But in response I get the image created with the additionalInfo containing:
Due to some issue this is not storing the additionalInfo being sent.
For Bugs:
Environment
This is experienced on demo.breedbase.org website.
Steps to Reproduce
Create a POST request on the breedbase instance on
/images
route with the given body.