-
Notifications
You must be signed in to change notification settings - Fork 555
fix: Apply new discount code routing #2204
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
fix: Apply new discount code routing #2204
Conversation
liveHarshit
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.
Tested?
|
@liveHarshit not yet, I just change based on server PR. Do you already have an event with discount code or should I make a new one? |
Yes but it's outdated. You need to create a new one. |
|
Have you tested it, or I can test it? |
|
Yes, it is not working. @liveHarshit @prateekj117 is this a correct endpoint: I have followed the change in your PR but this throw 404 error as requested URL not found on server. Or is it only updated in the debug mode? |
|
|
||
| @GET("discount-codes/{code}?include=event,tickets") | ||
| fun getDiscountCodes(@Path("code") code: String, @Query("filter") filter: String): Single<DiscountCode> | ||
| @GET("event/{eventId}/discount-code/{code}?include=event,tickets") |
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.
@anhanh11001 It's /events/{eventId}/discount-codes/{code}.
|
@anhanh11001 No, it's wrong. Correct endpoint would be: |
app/build.gradle
Outdated
| buildConfigField "String", "DEFAULT_BASE_URL", '"https://open-event-api-dev.herokuapp.com/v1/"' | ||
| buildConfigField "String", "DEFAULT_BASE_URL", '"https://api.eventyay.com/v1/"' | ||
|
|
||
| // buildConfigField "String", "DEFAULT_BASE_URL", '"https://open-event-api-dev.herokuapp.com/v1/"' |
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.
revert
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.
updated

Fixes: #2163