Skip to content
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

Add Application ID to all API requests #8

Merged
merged 3 commits into from Mar 29, 2019

Conversation

madebymozart
Copy link
Contributor

@madebymozart madebymozart commented Mar 27, 2019

Goals ⚽

Update our Merchant Library to use application-id based hostnames:
Ex. https://app-1234123412341234.mobile-api.usebutton.com

Implementation 🚧

  • URLs are now constructed using the new String getBaseUrl(String applicationId) method which injects the applicationId
  • baseUrl has changed from https://api.usebutton.com to https://%s.mobileapi.usebutton.com
  • Added an ButtonUtil.isApplicationIdValid method to validate application id against a regex.
  • Updated Tests

@madebymozart madebymozart added the enhancement New feature or request label Mar 27, 2019
@madebymozart madebymozart self-assigned this Mar 27, 2019
@madebymozart madebymozart changed the title Add Application ID to all api requests Add Application ID to all API requests Mar 27, 2019
@madebymozart madebymozart force-pushed the merchant-library-traffic-shaping-update branch from 76911dd to 5506fa4 Compare March 27, 2019 18:35
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 92.36% when pulling 1eb8e67 on merchant-library-traffic-shaping-update into c1e5247 on master.

Copy link
Contributor

@ecgreb ecgreb left a comment

Choose a reason for hiding this comment

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

👍

@madebymozart madebymozart merged commit b0ac0fd into master Mar 29, 2019
@madebymozart madebymozart deleted the merchant-library-traffic-shaping-update branch March 29, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

None yet

4 participants