-
Notifications
You must be signed in to change notification settings - Fork 3
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
Search function calls the wrong API #7
Comments
We actually changed/normalized the URL for blog post search when we added search for pages: https://buttercms.com/docs/api/#search-pages So this issue should really 1) update the url for blog post search and 2) add support for tapping into page search as well |
@jakelumetta @ViolanteCodes this was fixed by bfd47ad. Documentation contains incorrect API though. |
@martinalbert can you put in a PR to update the documentation? |
Actually, sorry, can you point out where the documentation is incorrect? |
@ViolanteCodes here in readme is mentioned getPostsSearch where as client contains getSearchPosts, same with getPageSearch in readme and getSearchPages in client |
@martinalbert thank you, i've opened an internal ticket :) |
According to the ButterCMS' documentation, the search URL is the following
GET 'https://api.buttercms.com/v2/posts/search/?query=buttercmsapi&page=1&page_size=10&auth_token=your_api_token'
However, using the search function according to docs from the Java SDK calls the following
GET https://api.buttercms.com/v2/posts/?auth_token=token&query=test HTTP/1.1
The /search/ part is missing.
The text was updated successfully, but these errors were encountered: