panosc-eu / search-api

PaN search api for WP3 and WP4
BSD 2-Clause "Simplified" License
4 stars 4 forks source link

Need to define what is included in the results of the API calls #30

Open RKrahl opened 4 years ago

RKrahl commented 4 years ago

The current API call documentation is not yet specific enough about the return values. In particular, it is not defined which related objects are to be included with a returned object. For instance, the GET /datasets/{id} call returning a dataset might need to include its parameters and files, otherwise there would be no way to retrieve those parameters or files at all.

I can see two possible options to achieve this: either

The latter option would be more versatile and easier to adapt to future extensions but also require a little more effort in the implementation. The first option would require very careful planning to avoid omitting things that turn out to be essential later on.

Furthermore, there are different options how the inclusion of related objects can be done: either

garethcmurphy commented 4 years ago

We will include the full object and not the id for the reasons stated above

zjttoefs commented 4 years ago

@henrikjohansson712 we talked about this. I think there may be a statement in the docs on github here now. Could you point this out and make sure that is transferred to the deliverable test, so we can close this?

henrikjohansson712 commented 4 years ago

The API calls document has been updated to state that no relations are included by default.