[GH-ISSUE #617] coverage: Add missing Game Center leaderboard + leaderboard set relationship endpoints (OpenAPI) #173

Closed
opened 2026-02-26 21:33:53 +03:00 by kerem · 0 comments
Owner

Originally created by @rudrankriyam on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/617

Context

These endpoints exist in the offline OpenAPI snapshot (docs/openapi/latest.json, indexed by docs/openapi/paths.txt) but are currently missing from internal/asc client coverage.

Goal

Add ASC client methods for the endpoints below (method + path).

Missing endpoints

  • DELETE /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards
  • DELETE /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards
  • GET /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards
  • GET /v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet
  • GET /v1/gameCenterLeaderboardSets/{id}/relationships/localizations
  • GET /v1/gameCenterLeaderboardSets/{id}/relationships/releases
  • GET /v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard
  • GET /v1/gameCenterLeaderboards/{id}/relationships/localizations
  • GET /v1/gameCenterLeaderboards/{id}/relationships/releases
  • GET /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards
  • GET /v2/gameCenterLeaderboardSets/{id}/relationships/versions
  • GET /v2/gameCenterLeaderboards/{id}/relationships/versions
  • PATCH /v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet
  • PATCH /v1/gameCenterLeaderboards/{id}/relationships/activity
  • PATCH /v1/gameCenterLeaderboards/{id}/relationships/challenge
  • PATCH /v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard
  • PATCH /v2/gameCenterLeaderboards/{id}/relationships/activity
  • PATCH /v2/gameCenterLeaderboards/{id}/relationships/challenge
  • POST /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards
  • POST /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards

Where/what to add

  • Implement in internal/asc/client_game_center.go, internal/asc/client_game_center_v2.go, and/or new client_game_center_leaderboards_relationships.go.
  • Endpoints include GET linkages and POST/DELETE/PATCH mutations; reuse RelationshipRequest/RelationshipList.
  • Tests should cover each HTTP method used (GET/POST/PATCH/DELETE).

Test plan

  • Add request-shaping tests using newTestClient (assert method + path + query).
  • For mutation endpoints (POST/PATCH/DELETE), assert request method + path and (when applicable) JSON relationship payload shape.

Acceptance criteria

  • All endpoints listed are implemented in internal/asc with tests.
  • ASC_BYPASS_KEYCHAIN=1 make test passes.
Originally created by @rudrankriyam on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/617 ## Context These endpoints exist in the offline OpenAPI snapshot (`docs/openapi/latest.json`, indexed by `docs/openapi/paths.txt`) but are currently missing from `internal/asc` client coverage. ## Goal Add ASC client methods for the endpoints below (method + path). ## Missing endpoints - [ ] DELETE /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards - [ ] DELETE /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards - [ ] GET /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards - [ ] GET /v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet - [ ] GET /v1/gameCenterLeaderboardSets/{id}/relationships/localizations - [ ] GET /v1/gameCenterLeaderboardSets/{id}/relationships/releases - [ ] GET /v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard - [ ] GET /v1/gameCenterLeaderboards/{id}/relationships/localizations - [ ] GET /v1/gameCenterLeaderboards/{id}/relationships/releases - [ ] GET /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards - [ ] GET /v2/gameCenterLeaderboardSets/{id}/relationships/versions - [ ] GET /v2/gameCenterLeaderboards/{id}/relationships/versions - [ ] PATCH /v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet - [ ] PATCH /v1/gameCenterLeaderboards/{id}/relationships/activity - [ ] PATCH /v1/gameCenterLeaderboards/{id}/relationships/challenge - [ ] PATCH /v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard - [ ] PATCH /v2/gameCenterLeaderboards/{id}/relationships/activity - [ ] PATCH /v2/gameCenterLeaderboards/{id}/relationships/challenge - [ ] POST /v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards - [ ] POST /v2/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards ## Where/what to add - Implement in `internal/asc/client_game_center.go`, `internal/asc/client_game_center_v2.go`, and/or new `client_game_center_leaderboards_relationships.go`. - Endpoints include GET linkages and POST/DELETE/PATCH mutations; reuse `RelationshipRequest`/`RelationshipList`. - Tests should cover each HTTP method used (GET/POST/PATCH/DELETE). ## Test plan - Add request-shaping tests using `newTestClient` (assert method + path + query). - For mutation endpoints (POST/PATCH/DELETE), assert request method + path and (when applicable) JSON relationship payload shape. ## Acceptance criteria - All endpoints listed are implemented in `internal/asc` with tests. - `ASC_BYPASS_KEYCHAIN=1 make test` passes.
kerem 2026-02-26 21:33:53 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#173
No description provided.