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

[BUG] In GET v2/entities with type query parameter, the list do not work #1749

Closed
iariasleon opened this issue Feb 1, 2016 · 2 comments
Closed
Assignees
Milestone

Comments

@iariasleon
Copy link
Contributor

Create N request with the same id=car and type=vehicle differents.

Ex; vehicle_0,..., vehicle_N.

POST http://localhost:1026/v2/entities
Content-Type: application/json
Fiware-Service: test_list_only_type
Fiware-ServicePath: /test
 {"type": "vehicle_0", "speed": {"value": "89"}, "id": "car"}

GET request

GET http://localhost:1026/v2/entities?type=vehicle_0,vehicle_1,vehicle_2
Content-Type: application/json
Fiware-Service: test_list_only_type
 Fiware-ServicePath: /test

GET response

http code: 200
date: Mon, 01 Feb 2016 17:50:24 GMT
content-length: 2
content-type: application/json
 []
@fgalan
Copy link
Member

fgalan commented Feb 2, 2016

Fixed in PR #1752. Please @iariasleon have a look in order to check it is solved.

@fgalan fgalan assigned iariasleon and unassigned kzangeli Feb 2, 2016
@iariasleon
Copy link
Contributor Author

LGTM

see @only_type_list tag in:

-  test/acceptance/behave/components/ngsiv2/entities/list_entities/list_entities_queries_parameters_part_1.feature file

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

3 participants