Repository navigation
feat: answer at the second path Stripe serves the people of an account and balance transactions at - #366
Merged
Conversation
…t and balance transactions at
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stripe serves some resources at two paths, and the API had one of each pair: the people of an account at
/personsand not at/people, and balance transactions at/v1/balance_transactionsand not at/v1/balance/history. A request written for the other path got a 404.Both paths of each pair now answer. A pair is named once, the API answers a request to the second path with the routes of the first, and the spec declares the seven operations at the second path. An SDK keeps one method for each endpoint.
Closes #276
Type of Change
How Was This Tested?
Unit tests for the path a request is answered at, with an ID, a query string and paths that only look alike. A test of the spec checks that it declares each alternative with the operations of the path it stands for, and that no SDK gets a second method. End-to-end tests create, update, retrieve, list and delete a person at
/people, and list and retrieve balance transactions at/balance/history. The end-to-end suite passes with bodies sent as JSON and as forms.Screenshots (if applicable)
Checklist