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

Introducing a filter parameter on the "items" endpoint #7

Merged
merged 5 commits into from
Oct 21, 2023

Conversation

pmauduit
Copy link
Member

@pmauduit pmauduit commented Sep 5, 2023

No description provided.

Comment on lines +111 to +119
You can also use the "f" parameter to pass the requested format to the request for convenience ; below
is the list of possible values:

* json
* geojson
* shapefile
* csv
* ooxml

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated, but was discussed during the weekly on 4th sept.

Comment on lines 53 to 57
@Test
public void testGetItemsWithFilter() {
MockHttpServletRequest actualRequest = (MockHttpServletRequest) req.getNativeRequest();
actualRequest.addHeader("Accept", "application/json");
ResponseEntity<FeatureCollection> response = collectionsApi.getFeatures("locations", -1,
null, null, "number = 140");

assertThat(response.getBody().getFeatures().toList().size())
.isEqualTo(1);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test fails on the "sample-data" spring profile but works fine when using the "postgis" one.

Copy link
Member Author

@pmauduit pmauduit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding comments to explain some changes.

@pmauduit pmauduit force-pushed the cql-filtering-on-items branch 2 times, most recently from efd708f to 5029681 Compare September 14, 2023 15:40
@pmauduit pmauduit marked this pull request as ready for review September 15, 2023 13:45
@groldan groldan merged commit 077d6ef into main Oct 21, 2023
2 checks passed
@groldan groldan deleted the cql-filtering-on-items branch October 21, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants