Skip to content

Clarify PlayFab e9d1 test endpoint inputs and support title-id overrides#6

Merged
Daniel-Ric merged 2 commits intomasterfrom
feature/2026-01-21/find-out-what-he-means-n0dhm7
Jan 21, 2026
Merged

Clarify PlayFab e9d1 test endpoint inputs and support title-id overrides#6
Daniel-Ric merged 2 commits intomasterfrom
feature/2026-01-21/find-out-what-he-means-n0dhm7

Conversation

@Daniel-Ric
Copy link
Copy Markdown
Owner

Motivation

  • Make the PlayFab test endpoint easier to use by documenting expected JSON values and where to obtain the PlayFab XSTS token and entity identifiers.
  • Allow PlayFab service helpers to target alternate title ids (used by the e9d1 test flow) without changing global config.

Description

  • Add explicit Swagger examples for the /inventory/playfab/test request body and update the README example to show where to get playfabToken and how entityType/entityId are resolved.
  • Implement a test endpoint POST /inventory/playfab/test that logs in with an XSTS token, exchanges for an EntityToken, selects title_player_account or master_player_account, and returns inventory for title id e9d1.
  • Introduce resolvePlayFabTitleId(titleId) and allow loginWithXbox, getEntityToken, and getPlayFabInventory to accept an optional titleId override and use the resolver when composing PlayFab URLs.
  • Add unit tests tests/playfab.test.js which cover the resolvePlayFabTitleId behavior.

Testing

  • No automated test suite was run for this PR (documentation-focused commit), and the added unit tests were included but not executed as part of this change.

Codex Task

@Daniel-Ric Daniel-Ric merged commit 28336c4 into master Jan 21, 2026
@Daniel-Ric Daniel-Ric deleted the feature/2026-01-21/find-out-what-he-means-n0dhm7 branch January 21, 2026 21:31
@Daniel-Ric Daniel-Ric restored the feature/2026-01-21/find-out-what-he-means-n0dhm7 branch January 21, 2026 21:31
@Daniel-Ric Daniel-Ric deleted the feature/2026-01-21/find-out-what-he-means-n0dhm7 branch January 21, 2026 21:32
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.

1 participant