The query at /searchengine//api/v1/resources/submitquery/ requires JSON and/or filters to be in this form:
{
"name": "Cell Line",
"value": "hela",
"operator": "equals",
"resource": "image"
},
However, everywhere else we use key instead of name. Adopting that here would improve consistency and allow me to pass the same dictionary of queries between different parts of the api.
I guess we could support both name/key if we wanted to avoid breaking changes, but might be better to make breaking changes at this early stage.
The query at
/searchengine//api/v1/resources/submitquery/requires JSON and/or filters to be in this form:However, everywhere else we use
keyinstead ofname. Adopting that here would improve consistency and allow me to pass the same dictionary of queries between different parts of the api.I guess we could support both name/key if we wanted to avoid breaking changes, but might be better to make breaking changes at this early stage.