versionone / VersionOne.SDK.Python

A library for custom Python development against the VersionOne Platform's REST-based API.
BSD 3-Clause "New" or "Revised" License
23 stars 32 forks source link

Sample code for advanced query produces Error 400: Bad Request during HTTP GET from /rest-1.v1/Data/Story #20

Open Rich8449 opened 9 years ago

Rich8449 commented 9 years ago

When attempting to run the following sample code from the readme I receive the following error:

Sample code:

    for s in (v1.Story.filter("Estimate>'5',TotalDone.@Count<'10'").select('Name')):
        print s.Name

v1pysdk.client.V1Error:

Invalid WHERE parameterInvalid QueryFilter2 token Estimate>'5', TotalDone.@Count<'10'Position 14: unexpected char: ' '

Process finished with exit code 1

ddraayer commented 9 years ago

I'm not able to test this at the moment (cert validation issues), but my guess is that the comma before TotalDone should be a semicolon. I'm basing this on http://community.versionone.com/Developers/Developer-Library/Documentation/Data_API/Queries/where

mtalexan commented 6 years ago

It is a documentation issue. There are a couple of forks of this unmaintained project that fix the documentation: https://github.com/mtalexan/VersionOne.SDK.Python