GALAglobal / TAPICC-API-implementation

TAPICC API implementation using node.js framework sails.js
Other
6 stars 1 forks source link

Tasks for a project #56

Closed ysavourel closed 5 years ago

ysavourel commented 6 years ago

Now that tasks are decoupled from assets (per issue OAI/OpenAPI-Specification#47), it's not clear how we can access tasks .

I suppose we could have GET /tasks?jobId={jobId} but currently it's not defined. Should we have GET /jobs/{jobId}/tasks?

Alino commented 6 years ago

I would prefer to have one universal way how to filter collections based on it's parameters, and that is as you mentioned:

I suppose we could have GET /tasks?jobId={jobId} but currently it's not defined.

This is related to https://github.com/GALAglobal/TAPICC-API-implementation/issues/35

Unfortunately it seems there is no way currently to define global query parameters in swagger definition. We would have to add them manually to each route. So I wonder if we should do it in swagger definition (add all possible query params for filtering and sorting in each route) Or have some single declaration in some external documentation.