Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Query options passed to .rest() are only parsed when 'queryCols' exists #3

Closed
gitbrent opened this issue Oct 13, 2017 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@gitbrent
Copy link
Owner

The .rest() method is ignoring options (not including them in REST queries) when queryCols is not included:

CODE:

sprLib.rest({ url:'/sites/dev/_api/web/lists', queryFilter:'ID eq 99' })

RequestURL:
/sites/dev/_api/web/lists?_=1507783353329

CODE:

sprLib.rest({ url:'/sites/dev/_api/web/lists', queryCols:'ID', queryFilter:'ID eq 99' })

RequestURL:
/sites/dev/_api/web/lists?$select=ID&$top=1000&$filter=ID%20eq%2099&_=1507783353336

@gitbrent gitbrent self-assigned this Oct 13, 2017
@gitbrent gitbrent added the bug label Oct 13, 2017
gitbrent pushed a commit that referenced this issue Oct 13, 2017
@gitbrent gitbrent added this to the 1.2.1 milestone Oct 13, 2017
@gitbrent
Copy link
Owner Author

Fixed. Lots of new QUnit tests added for sprLib.rest() param parsing now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant