Skip to content

Conversation

@anhanh11001
Copy link
Contributor

Fixes: #2163

@auto-label auto-label bot added the fix label Jul 28, 2019
nikit19
nikit19 previously approved these changes Jul 28, 2019
Copy link
Member

@liveHarshit liveHarshit left a comment

Choose a reason for hiding this comment

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

Tested?

@anhanh11001
Copy link
Contributor Author

@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?

@liveHarshit
Copy link
Member

@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.

@liveHarshit
Copy link
Member

Have you tested it, or I can test it?

@anhanh11001
Copy link
Contributor Author

anhanh11001 commented Aug 2, 2019

Yes, it is not working. @liveHarshit

@prateekj117 is this a correct endpoint:
https://api.eventyay.com/event/954/discount-code/DISS7

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")
Copy link
Member

@prateekj117 prateekj117 Aug 2, 2019

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}.

@prateekj117
Copy link
Member

@anhanh11001 No, it's wrong. Correct endpoint would be: https://api.eventyay.com/events/954/discount-codes/DISS7.

@iamareebjamal
Copy link
Member

iamareebjamal commented Aug 2, 2019

https://api.eventyay.com/v1/events/954/discount-codes/DISS7

@anhanh11001
Copy link
Contributor Author

It's working now

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/"'
Copy link
Member

Choose a reason for hiding this comment

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

revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@iamareebjamal iamareebjamal merged commit 9a3eb89 into fossasia:development Aug 3, 2019
@anhanh11001 anhanh11001 deleted the 2163_change_discount_code branch August 5, 2019 17:25
liveHarshit pushed a commit to liveHarshit/open-event-attendee-android that referenced this pull request Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change endpoint for discount and access code

5 participants