docs: GET /api/artists/{id}/segments (replaces /api/artist/segments)#135
docs: GET /api/artists/{id}/segments (replaces /api/artist/segments)#135arpitgupta1214 wants to merge 1 commit into
Conversation
…egments
Replace the legacy top-level /api/artist/segments list route with the
nested /api/artists/{id}/segments route in the same PR, matching the
resource-first URL convention already in use for /api/artists/{id}/pin,
/api/artists/{id}/unpin, and DELETE /api/artists/{id}.
Per the segments surface migration plan, the legacy route is removed,
not aliased, and the api PR that introduces the nested route will drop
the old route in the same release.
- add api-reference/artists/segments.mdx referencing the new nested
operation in api-reference/openapi/releases.json
- remove api-reference/artist/segments.mdx and swap the docs.json
navigation entry to point at the new page
- add GET /api/artists/{id}/segments to releases.json with the id path
param, page/limit query params, and 200/400/401/403/500 responses
(reusing the existing ArtistSegmentsResponse / ArtistSegmentsErrorResponse
schemas so the payload shape is identical to the legacy route)
- remove the legacy GET /api/artist/segments path from releases.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughAPI documentation for artist segments was migrated from a singular endpoint structure ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
GET /api/artists/{id}/segmentsas a new nested-resource list endpoint (artist id is path-encoded;page/limitremain as query params with the same defaults)GET /api/artist/segmentsreference in the same PRdocs.jsonfromapi-reference/artist/segmentstoapi-reference/artists/segmentsThe accompanying
apiPR introduces the nested route and removes the legacy route at the same time;chatis the only known consumer today.Changes
api-reference/artists/segments.mdx(added) — frontmatter-only page referencing the new operation, matching the pattern used byartists/pin.mdx,artists/unpin.mdx,artists/delete.mdxapi-reference/artist/segments.mdx(removed)api-reference/openapi/releases.json:GET /api/artists/{id}/segmentswith theidpath param (uuid),page/limitquery params, and200 / 400 / 401 / 403 / 500responsesArtistSegmentsResponseandArtistSegmentsErrorResponseschemas so the published payload shape is identical to the legacy routeGET /api/artist/segmentspathdocs.json— navigation swap (no other nav changes)Test plan
npx mintlify@latest devrenders the Artists group with the new "Get Artist Segments" page atapi-reference/artists/segmentsidpath param and bothpage/limitquery paramsapi-reference/artist/segmentsis gone from navigation and returns 404 locallyreleases.jsonstill parses and no references to/api/artist/segmentsremainapiPR (which cuts over the actual route) is ready so the docs stay consistent with what the API servesSummary by cubic
Adds docs and OpenAPI for GET /api/artists/{id}/segments and removes the legacy /api/artist/segments. Moves to a nested, resource-first path. Pagination stays the same and response schemas are unchanged.
Written for commit dc17cca. Summary will update on new commits.
Summary by CodeRabbit
Documentation
API Changes