Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Create api parameters that allow for certain blocks not to be returned. So for example, only return items, and not query, facets, pagination, localisation. #885

Open
kiivihal opened this issue May 13, 2013 · 1 comment
Assignees

Comments

@kiivihal
Copy link
Member

Currently, we have a number of distinct blocks in the API output. Since not every API consumers are not using all the blocks it is a waste of bandwidth to include them all. So I propose to make them configurable from the API. The blocks we are talking about are:

  • query
  • pagination
  • layout
  • items
  • facets

I think the query and items blocks should always be returned. So if we want to have a pragmatic solution we could just have a full and minimal render set. I think the diw could also really benefit from a fine-grained access to the different blocks.

@ghost ghost assigned manuelbernhardt May 13, 2013
@manuelbernhardt
Copy link
Contributor

I started working on this, but the code is heavily repeated so I started DRYing it up.
We however have no test for the API, which is not good.

Could you provide me with a list of example API calls that render the various formats:

  • XML
  • JSON
  • JSONP
  • KML (different flavors)
  • SIMILE
  • SIMILEP

Then I can start to build a test case for the API

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants