Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] add filter by object ids getting a collection of objects #765

Closed
batopa opened this issue Nov 17, 2015 · 2 comments
Closed

[API] add filter by object ids getting a collection of objects #765

batopa opened this issue Nov 17, 2015 · 2 comments

Comments

@batopa
Copy link
Member

batopa commented Nov 17, 2015

We need to add a filter to get a collection of objects by id.
For example

GET /objects?filter[id]=1,2,3

GET /objects?id=1,2,3

If some object requested is not reachable the API will respond with an error.
The max number of objects ids requested must is less then ApiBaseController::paginationOptions['maxPageSize']

@batopa
Copy link
Member Author

batopa commented Nov 17, 2015

Since it is not properly a filter it is better to use id and not filter[id]

batopa added a commit that referenced this issue Nov 17, 2015
GET /objects?id=1,2,3,4,5
@stefanorosanelli
Copy link
Member

test ok!

batopa added a commit to bedita/docs that referenced this issue Nov 19, 2015
@batopa batopa closed this as completed Nov 19, 2015
qwerg added a commit that referenced this issue Dec 1, 2015
…orylus

# By batopa (16) and others
# Via batopa (3) and others
* '3-corylus' of https://github.com/bedita/bedita: (36 commits)
  #768 refactoring and fix
  #771 new data export block in area view
  #772 validate verify: no area when dest is set
  data transfer import -parentId destination
  [minor] fix wrong query string formatting if no ',' was present
  #768 format embed[relations_detail]
  #670 Implement support for 5+ digit years.
  #767 code review
  #768 add embed[relations_detail] to GET /object query string
  #767 /poster endpoint moved to /posters - id param for multiple id's
  [minor] Add `--quiet` flag to migration shell.
  [minor] Add doc block.
  #670 Delegate conversion to PHP shell.
  data transfer - xmlEntity option for export
  minor - no php warning in copy file
  #481 allow other module config file load - other than conifg_local.php
  [minor] import Folder class always (avoid 'class not found' errors)
  [minor] gravatar default
  #766 add GravatarHelper
  #765 get collection of objects by ids
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants