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

Support SODA API version 2.1 #35

Open
bolek opened this issue May 9, 2018 · 0 comments
Open

Support SODA API version 2.1 #35

bolek opened this issue May 9, 2018 · 0 comments

Comments

@bolek
Copy link

bolek commented May 9, 2018

I am trying to run the following query:

def soql = new SoqlQueryBuilder()
        .addSelectPhrase("count(*)")
        .setWhereClause(":updated_at>'${dateString}'")
        .build();

soda-java currently generates the following url:

https://data.cityofnewyork.us/resource/fhrw-4uyv.json?$select=count(*)&$where=:updated_at%3E%272018-05-08T21:19:25Z%27&$$version=2.0

which returns

{"message":"Invalid SoQL query","errorCode":"query.soql.invalid","data":{}}

Seems that this particular query is not supported by API version 2.0. Changing version to 2.1 results in a successful response.

The API SODA_VERSION is set here:

final UriBuilder builder = UriBuilder.fromUri(uri).queryParam(SODA_VERSION, "2.0");

Are there any plans to bump SODA_VERSION to 2.1?

@bolek bolek changed the title Bump version to 2.1 Support SODA API version 2.1 May 9, 2018
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

No branches or pull requests

1 participant