-
Notifications
You must be signed in to change notification settings - Fork 3
[CH12120] Change Method to POST #54
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
Conversation
| val path = "/v2/behavioral_action/browse_result_click?filter_name=group_id&filter_value=Movies&customer_id=TIT-REP-1997&result_position_on_page=4&autocomplete_section=Products&key=copper-key&i=wacko-the-guid&ui=player-three&s=67&c=cioand-2.3.0&_dt="; | ||
| assert(request.path.startsWith(path)) | ||
| val request = mockServer.takeRequest(10, TimeUnit.SECONDS) | ||
| assertEquals(null, request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throttleBody throttles the request reader and response writer, so it might make sense for the mockServer.takeRequest(10, TimeUnit.SECONDS) to return null
| val path = "/v2/behavioral_action/browse_result_load?filter_name=group_id&filter_value=Movies&num_results=10&action=browse-results&key=copper-key&i=wacko-the-guid&ui=player-three&s=67&c=cioand-2.3.0&_dt="; | ||
| assert(request.path.startsWith(path)) | ||
| val request = mockServer.takeRequest(10, TimeUnit.SECONDS) | ||
| assertEquals(null, request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throttleBody throttles the request reader and response writer, so it might make sense for the mockServer.takeRequest(10, TimeUnit.SECONDS) to return null
library/src/main/java/io/constructor/data/model/browse/BrowseRequestBody.kt
Outdated
Show resolved
Hide resolved
| @Query("customer_id") customerId: String, | ||
| @Query("result_position_on_page") resultPositionOnPage: Int, | ||
| @POST(ApiPaths.URL_BROWSE_RESULT_CLICK_EVENT) | ||
| fun trackBrowseResultClick(@Body browseRequestBody: BrowseRequestBody, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
rubikzube
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For browse result click and load we also need to pass query params set in the URL in the request body (a.k.a most of the params set in the RequestInterceptor)
Uh oh!
There was an error while loading. Please reload this page.