sgn icon indicating copy to clipboard operation
sgn copied to clipboard

Images upload

Open MitanshuShaBa opened this issue 1 year ago • 2 comments

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:

[
  {
    "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.

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.

MitanshuShaBa avatar Feb 23 '24 22:02 MitanshuShaBa

@MitanshuShaBa I'm wondering what would you like to store as "additionalProp3". Storing TAGs is available at the moment.

MFlores2021 avatar May 07 '24 18:05 MFlores2021

According to Prasad [email protected] They need to store trialDbId

MFlores2021 avatar Jun 18 '24 17:06 MFlores2021