Skip to content

docs(api-reference): add v2 endpoints overview and switch docs OpenAPI to v2-only spec Improve API Reference navigation by introducing a dedicated Endpoints Overview page in docs and wiring Mintlify OpenAPI rendering to a local v2-only spec. - add `api-re - #71

Merged
rodrigopavezi merged 1 commit into
mainfrom
03-03-docs_api-reference_add_v2_endpoints_overview_and_switch_docs_openapi_to_v2-only_spec_improve_api_reference_navigation_by_introducing_a_dedicated_endpoints_overview_page_in_docs_and_wiring_mintlify_openapi_rendering_to_a_local_v2
May 12, 2026
Merged

docs(api-reference): add v2 endpoints overview and switch docs OpenAPI to v2-only spec Improve API Reference navigation by introducing a dedicated Endpoints Overview page in docs and wiring Mintlify OpenAPI rendering to a local v2-only spec. - add `api-re#71
rodrigopavezi merged 1 commit into
mainfrom
03-03-docs_api-reference_add_v2_endpoints_overview_and_switch_docs_openapi_to_v2-only_spec_improve_api_reference_navigation_by_introducing_a_dedicated_endpoints_overview_page_in_docs_and_wiring_mintlify_openapi_rendering_to_a_local_v2

Conversation

@aimen74

@aimen74aimen74 commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@aimen74aimen74 self-assigned this Mar 3, 2026
@aimen74
aimen74 marked this pull request as ready for review March 3, 2026 11:00
@aimen74Graphite App

aimen74 commented Mar 3, 2026

Copy link
Copy Markdown
ContributorAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@greptile-apps

greptile-appsBot commented Mar 3, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds a dedicated Endpoints Overview page (api-reference/endpoints-overview.mdx), introduces a local v2-only OpenAPI spec (api-reference/openapi.v2.json), and wires Mintlify's OpenAPI rendering to that local file instead of the remote URL. The request-network-api/create-and-pay-requests.mdx page is repurposed into a second overview page and removed from the navigation.

  • Local v2 OpenAPI spec: Every endpoint in openapi.v2.json carries two tags — a generic one (e.g. \"Request\", \"Pay\") and a versioned one (e.g. \"V2/Request\", \"V2/Payouts\") — which will produce inconsistently-named or duplicated navigation groups in Mintlify's auto-generated sidebar, since V2/Payments (single-tag) would render correctly while all other groups would not.
  • Orphaned overview page: request-network-api/create-and-pay-requests.mdx was removed from navigation but still contains four Card links pointing to the non-existent /api-reference/endpoints path, and its deep-link URLs use unencoded curly braces ({requestId}) unlike the properly encoded %7BrequestId%7D used in endpoints-overview.mdx.

Confidence Score: 4/5

The docs navigation wiring is correct, but the dual-tag pattern in the bundled OpenAPI spec will produce mismatched or duplicated sidebar groups in the Mintlify-rendered API reference.

The dual-tag issue on every endpoint in openapi.v2.json means Mintlify will either render endpoint groups under their generic names (Request, Pay) instead of the versioned names, or create duplicate groups for the same endpoints — both outcomes conflict with the stated goal of a clean v2-only reference. The rest of the changes (navigation rewiring, new overview page) are straightforward.

api-reference/openapi.v2.json — the dual-tag pattern on each endpoint path needs review before this renders correctly in Mintlify.

Important Files Changed

FilenameOverview
api-reference/endpoints-overview.mdxNew index page for v2 endpoint groups; Card links (already addressed in a later commit) and external OpenAPI links use properly encoded URLs.
api-reference/openapi.v2.jsonNew local v2-only OpenAPI spec (5843 lines); valid structure with info/servers, but all endpoints carry dual tags (generic + V2-prefixed) that will produce inconsistent or duplicate navigation groups in Mintlify.
docs.jsonSwitches the "Endpoints" OpenAPI source from a remote URL to the new local v2 spec and renames the group to "Endpoints (V2)"; navigation change looks correct.
request-network-api/create-and-pay-requests.mdxRepurposed as a second Endpoints Overview page (now orphaned from navigation); all four Card links still point to the non-existent /api-reference/endpoints, and deep-link URLs use unencoded curly braces unlike the sibling overview page.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[docs.json Navigation] -->|group Endpoints V2| B[endpoints-overview.mdx]
A -->|openapi source| C[openapi.v2.json]
C -->|auto-generates sidebar| D{Mintlify tag grouping}
D -->|first tag: Request| E[Request group]
D -->|second tag: V2-Request| F[V2-Request group]
D -->|first tag: Pay| G[Pay group]
D -->|second tag: V2-Payouts| H[V2-Payouts group]
D -->|only tag: V2-Payments| I[V2-Payments group - correct]
E & F --> J[Inconsistent or duplicate sidebar entries]
G & H --> J
K[create-and-pay-requests.mdx orphaned] -->|not in docs.json| L[Unreachable via navigation]
K -->|broken Card hrefs| M[api-reference-endpoints page missing]
Loading

Reviews (2): Last reviewed commit: "docs(api-reference): add v2 endpoints ov..." | Re-trigger Greptile

@greptile-appsgreptile-appsBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment threadapi-reference/endpoints-overview.mdx
@greptile-apps

Copy link
Copy Markdown
Additional Comments (1)

request-network-api/create-and-pay-requests.mdx
This file is orphaned — it is no longer referenced in docs.json navigation and is unreachable to users. It contains a duplicate "Endpoints Overview" that mirrors api-reference/endpoints-overview.mdx.

Orphaned files should be deleted rather than left in the repository. If the original "Create and Pay Requests" content is no longer needed, remove this file entirely. If it should be restored, update docs.json to reference it again and restore the original content.

@aimen74aimen74 linked an issue Mar 3, 2026 that may be closed by this pull request
@rodrigopaveziGraphite App

rodrigopavezi commented May 12, 2026

Copy link
Copy Markdown
Contributor

Merge activity

  • May 12, 4:02 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 12, 4:42 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 12, 4:43 PM UTC: @rodrigopavezi merged this pull request with Graphite.

@rodrigopavezi
rodrigopavezi changed the base branch from 03-02-docs_api-reference_rewrite_authentication_page_as_canonical_auth_reference_replace_the_previous_ai-generated_authentication_page_with_a_focused_api-accurate_authentication_reference_that_stands_on_its_own_and_avoids_duplicating_ to graphite-base/71May 12, 2026 16:40
@rodrigopavezi
rodrigopavezi changed the base branch from graphite-base/71 to mainMay 12, 2026 16:41
…I to v2-only spec
Improve API Reference navigation by introducing a dedicated Endpoints Overview
page in docs and wiring Mintlify OpenAPI rendering to a local v2-only spec.
- add `api-reference/endpoints-overview.mdx` as a docs-native index for endpoint groups
- update overview cards to route inside docs (instead of external links), including direct navigation to v2 Request endpoint pages
- repurpose `request-network-api/create-and-pay-requests.mdx` into an endpoint-overview style page to avoid legacy overlap and reduce duplicated “how-to” content
- update `docs.json` Endpoints group to use a local OpenAPI source:
`api-reference/openapi.v2.json`
- add `api-reference/openapi.v2.json` (filtered v2-only OpenAPI spec) to improve separation between v1 and v2 endpoint references in Mintlify
- keep API Reference section focused on discoverability and endpoint navigation while API Features remains implementation-focused
@rodrigopavezi
rodrigopaveziforce-pushed the 03-03-docs_api-reference_add_v2_endpoints_overview_and_switch_docs_openapi_to_v2-only_spec_improve_api_reference_navigation_by_introducing_a_dedicated_endpoints_overview_page_in_docs_and_wiring_mintlify_openapi_rendering_to_a_local_v2 branch from 0d66aac to 48d208cCompareMay 12, 2026 16:42
@rodrigopavezi
rodrigopavezi merged commit 858f5eb into mainMay 12, 2026
2 checks passed
@rodrigopavezi
rodrigopavezi deleted the 03-03-docs_api-reference_add_v2_endpoints_overview_and_switch_docs_openapi_to_v2-only_spec_improve_api_reference_navigation_by_introducing_a_dedicated_endpoints_overview_page_in_docs_and_wiring_mintlify_openapi_rendering_to_a_local_v2 branch May 12, 2026 16:43
Comment on lines +286 to +291
"responses": {
"200": {
"description": "Conversion routes retrieved successfully",
"content": {
"application/json": {
"examples": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1Dual tags cause inconsistent or duplicate grouping in Mintlify

Every endpoint in this spec carries two tags: a generic one ("Currencies", "Request", "Pay", "Payer", "Client IDs") and a versioned one ("V2/Currencies", "V2/Request", "V2/Payouts", "V2/Payer", "V2/Client IDs"). Mintlify groups auto-generated sidebar entries by tag. Depending on whether Mintlify resolves by first tag or creates an entry per tag, rendered docs will either show un-versioned group names ("Request", "Pay", "Currencies") that conflict with the "Endpoints (V2)" parent group label, or create duplicate endpoint sections under both the generic and versioned tag names. The only exception is V2/Payments (which has a single tag), so it would render correctly while all other endpoint groups would not. Removing the generic first tag from each endpoint and keeping only the V2/… tag would give consistent labelling throughout the sidebar.

Sign up for freeto 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.

Documentation - Merge Mintlify docs and replace legacy docs

2 participants

@aimen74@rodrigopavezi