i have a fastApi post request endpoint that’s a multipart/form-data with the following params:
model_source: myModelDropdownvlues,
body: myModel = Body(JSON_EXAMPLES.get(“value from dropdown model_source)),
files: List[UploadFile] = File(None),
what i want is when i select an item from the dropdown i want it to pull data from JSON_EXAMPLES
so it can be modified and sent with the request body.
I can hard code the value and it will display the corresponding object from the Json file
but i need to be able to pass it in from the dropdown.
the dropdown value is not drawn from a form value.
AWS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.