Skip to content

feat(auth): regenerate against spec 0.95.0 — POST /auth/token#1

Merged
mrmx merged 4 commits into
mainfrom
feat/auth-token-phase2
May 25, 2026
Merged

feat(auth): regenerate against spec 0.95.0 — POST /auth/token#1
mrmx merged 4 commits into
mainfrom
feat/auth-token-phase2

Conversation

@mrmx
Copy link
Copy Markdown
Contributor

@mrmx mrmx commented May 25, 2026

Phase 2 of openapi-auth-rollout. New AuthApi.auth(). README drive-by: JWT_API_TOKENQTSURFER_TOKEN, hostname fix, version bump, AuthApi row added. mvn verify 10/10.

mrmx added 4 commits May 25, 2026 19:27
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.
@mrmx mrmx merged commit e83ed03 into main May 25, 2026
4 checks passed
@mrmx mrmx deleted the feat/auth-token-phase2 branch May 25, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant