Skip to content

add search_v2 url support#75

Closed
czhang-blurb wants to merge 1 commit into
Jesus:masterfrom
czhang-blurb:search_v2_support
Closed

add search_v2 url support#75
czhang-blurb wants to merge 1 commit into
Jesus:masterfrom
czhang-blurb:search_v2_support

Conversation

@czhang-blurb

Copy link
Copy Markdown
Contributor

Updates URL to point to search_v2 endpoint.

class Search < DropboxApi::Endpoints::Rpc
Method = :post
Path = "/2/files/search".freeze
Path = "/2/files/search_v2".freeze

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming/ConstantName: Use SCREAMING_SNAKE_CASE for constants.
Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

@Jesus

Jesus commented Feb 6, 2021

Copy link
Copy Markdown
Owner

I want to support the new search_v2 endpoint but we can't just change the endpoint path, we have to update the params and the format of the expected response.

I haven't looked thoroughly, but for example I think pagination won't work well if we merge this PR.

@Jesus Jesus closed this Feb 7, 2021
@Jesus

Jesus commented Feb 7, 2021

Copy link
Copy Markdown
Owner

Done in #77

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.

3 participants