Skip to content

submitquery: "name" rename to "key" #42

@will-moore

Description

@will-moore

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions