feat(auth): regenerate against spec 0.95.0 — POST /auth/token#1
Merged
Conversation
Picks up OpenAPI spec 0.95.0: - New AuthApi.auth() method against POST /auth/token - AuthTokenResponse and AuthError models - apiKeyAuth (X-API-Key) security scheme Also carries forward additive schema changes from a prior missed regen: EquityPoint, ResultMap.pnlTotalPercent, and ResultMap.equityCurve. README drive-by: switch quickstart env var from JWT_API_TOKEN to QTSURFER_TOKEN, matching the TS and Python clients.
Picks up the AuthError schema rename in spec 0.95.1 (symmetric with AuthTokenResponse). All other contract details unchanged. Generated model class renamed at build time: - AuthError -> AuthTokenError Bumps com.qtsurfer:api-client to 0.3.1.
Generator regen does not touch the README. Add a short usage snippet showing how to call `AuthApi.auth()` with an ApiClient configured to send X-API-Key via setRequestInterceptor, document the QTSURFER_APIKEY env-var convention, and point production callers at the sibling SDK for token-refresh handling. Part of openapi-auth-rollout Phase 2 (#168).
A prior drive-by edit in this PR replaced 'api.qtsurfer.com' with 'api.qtsurfer.net' to match what was running in pre. That direction is wrong: the documented base URL in README quickstarts should reflect the production target, which is .com. .net is the staging / pre-prod host that adopters do not need to know about. This restores the three quickstart snippets (Exchange, Auth, ExchangeBinaryDownloads) to api.qtsurfer.com, aligning Java with api-client-python and api-client-ts.
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.
Phase 2 of openapi-auth-rollout. New
AuthApi.auth(). README drive-by:JWT_API_TOKEN→QTSURFER_TOKEN, hostname fix, version bump, AuthApi row added. mvn verify 10/10.