From 1d47452cb5590bc3f37e2a9c16b7a5d9d67152eb Mon Sep 17 00:00:00 2001 From: Tom Blake Date: Sun, 8 Dec 2024 11:15:06 +1300 Subject: [PATCH] Add missing API docs Add API docs that were accidentally removed from the sidebar in https://github.com/centrapay/centrapay-docs/pull/1132/files#diff-4460da6ebd489d74cd52390cd1fa1d5f28708b14f0c15ca687bde6092f3c9e9e Test plan: - Confirm missing docs are present in the API reference sidebar --- src/content/api/api-keys.mdoc | 2 +- src/content/api/auth.mdoc | 2 +- src/content/api/batches.mdoc | 2 +- src/content/api/data-types.mdoc | 2 +- src/content/api/http-status-codes.mdoc | 2 +- src/content/api/introduction.mdoc | 2 +- src/content/api/invitations.mdoc | 2 +- src/content/api/media-uploads.mdoc | 2 +- src/content/api/object-ids.mdoc | 2 +- src/content/api/pagination.mdoc | 2 +- src/content/api/profiles.mdoc | 2 +- src/content/api/quotas.mdoc | 2 +- src/content/api/settlements.mdoc | 2 +- src/navigation/apiNavigation.js | 1 + 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/content/api/api-keys.mdoc b/src/content/api/api-keys.mdoc index f717f7394..35963bf5c 100644 --- a/src/content/api/api-keys.mdoc +++ b/src/content/api/api-keys.mdoc @@ -2,7 +2,7 @@ title: API Keys description: Introduction to API Keys nav: - path: API + path: API Reference order: 6 --- API keys provide enduring access to a single Centrapay [Account](/api/accounts). diff --git a/src/content/api/auth.mdoc b/src/content/api/auth.mdoc index 36c61d633..d780f9a57 100644 --- a/src/content/api/auth.mdoc +++ b/src/content/api/auth.mdoc @@ -2,7 +2,7 @@ title: Auth description: Introduction to Authentication nav: - path: API + path: API Reference order: 2 --- ## Authenticating API Calls diff --git a/src/content/api/batches.mdoc b/src/content/api/batches.mdoc index 437921e20..317122836 100644 --- a/src/content/api/batches.mdoc +++ b/src/content/api/batches.mdoc @@ -2,7 +2,7 @@ title: Batches description: Batch model and related endpoints nav: - path: API + path: Batches order: 10 --- Batches enable bulk loading of resource onto the Centrapay platform. diff --git a/src/content/api/data-types.mdoc b/src/content/api/data-types.mdoc index 277350d55..3fabd6cb8 100644 --- a/src/content/api/data-types.mdoc +++ b/src/content/api/data-types.mdoc @@ -2,7 +2,7 @@ title: Data Types description: Introduction to Data Types nav: - path: API + path: API Reference order: 4 --- diff --git a/src/content/api/http-status-codes.mdoc b/src/content/api/http-status-codes.mdoc index bc8c705dc..8472ef561 100644 --- a/src/content/api/http-status-codes.mdoc +++ b/src/content/api/http-status-codes.mdoc @@ -2,7 +2,7 @@ title: HTTP Status Codes description: Introduction to HTTP Status Codes nav: - path: API + path: API Reference order: 3 --- Centrapay APIs respond with 200, 400, 401, 403, 404, or 429 HTTP status codes. diff --git a/src/content/api/introduction.mdoc b/src/content/api/introduction.mdoc index f4639d8e3..1b69de00a 100644 --- a/src/content/api/introduction.mdoc +++ b/src/content/api/introduction.mdoc @@ -2,7 +2,7 @@ title: Introduction description: Introduction to the API Reference nav: - path: API + path: API Reference order: 1 --- The Centrapay API is an [RMM](https://en.wikipedia.org/wiki/Richardson_Maturity_Model) diff --git a/src/content/api/invitations.mdoc b/src/content/api/invitations.mdoc index dc34cefd1..ad90196bf 100644 --- a/src/content/api/invitations.mdoc +++ b/src/content/api/invitations.mdoc @@ -2,7 +2,7 @@ title: Invitations description: Invitation model and related endpoints nav: - path: API + path: Invitations order: 13 --- An Invitation can be used to allow users to claim ownership of a resource on the Centrapay platform. diff --git a/src/content/api/media-uploads.mdoc b/src/content/api/media-uploads.mdoc index 82875752d..33e9d5c61 100644 --- a/src/content/api/media-uploads.mdoc +++ b/src/content/api/media-uploads.mdoc @@ -2,7 +2,7 @@ title: Media Uploads description: Media Uploads API Reference nav: - path: API + path: Media Uploads order: 15 --- ## Media Upload Model diff --git a/src/content/api/object-ids.mdoc b/src/content/api/object-ids.mdoc index 7169c3b09..c1b865cc4 100644 --- a/src/content/api/object-ids.mdoc +++ b/src/content/api/object-ids.mdoc @@ -2,7 +2,7 @@ title: Object IDs description: Object Identifiers (IDs) nav: - path: API + path: API Reference order: 7 --- diff --git a/src/content/api/pagination.mdoc b/src/content/api/pagination.mdoc index 8c74f6bea..2406aeeff 100644 --- a/src/content/api/pagination.mdoc +++ b/src/content/api/pagination.mdoc @@ -2,7 +2,7 @@ title: Pagination description: Introduction to Pagination nav: - path: API + path: API Reference order: 5 --- Pagination allows a listing endpoint to return a subset of results. The goal is to reduce memory diff --git a/src/content/api/profiles.mdoc b/src/content/api/profiles.mdoc index 33e693b69..60a4fa72c 100644 --- a/src/content/api/profiles.mdoc +++ b/src/content/api/profiles.mdoc @@ -2,7 +2,7 @@ title: Profiles description: Profile model and related endpoints nav: - path: API + path: Profiles order: 18 --- A profile represents a Centrapay user's attributes. diff --git a/src/content/api/quotas.mdoc b/src/content/api/quotas.mdoc index f9c82a672..e6596baa7 100644 --- a/src/content/api/quotas.mdoc +++ b/src/content/api/quotas.mdoc @@ -2,7 +2,7 @@ title: Quotas description: Quota model and related endpoints nav: - path: API + path: Quotas order: 19 --- Centrapay account quotas are enforced on usage types such as spending or topping up, and may apply to a time period (daily, monthly, yearly). Account quotas may be affected by the verification status of the Centrapay account. diff --git a/src/content/api/settlements.mdoc b/src/content/api/settlements.mdoc index 526d1ae2b..1e2149fc2 100644 --- a/src/content/api/settlements.mdoc +++ b/src/content/api/settlements.mdoc @@ -2,7 +2,7 @@ title: Settlements description: Settlement models and related endpoints nav: - path: API + path: Settlements order: 21 --- A Settlement is created from completed [Payment Requests](/api/payment-requests/) over a specified period for each supported [Asset Type](/api/asset-types/) for each [Merchant](/api/merchants/). diff --git a/src/navigation/apiNavigation.js b/src/navigation/apiNavigation.js index cc2bbbdf5..9a5fdc75c 100644 --- a/src/navigation/apiNavigation.js +++ b/src/navigation/apiNavigation.js @@ -2,6 +2,7 @@ import { getCollection } from '../utils/getCollection'; import Navigation from '../navigation/Navigation'; const nav = [ + { title: 'API Reference', order: 6 }, { title: 'Accounts', order: 7 }, { title: 'Assets', order: 8 }, { title: 'Bank Accounts', order: 9 },