Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing API docs #1138

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/api/api-keys.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/auth.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Auth
description: Introduction to Authentication
nav:
path: API
path: API Reference
order: 2
---
## Authenticating API Calls
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/batches.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/data-types.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Data Types
description: Introduction to Data Types
nav:
path: API
path: API Reference
order: 4
---

Expand Down
2 changes: 1 addition & 1 deletion src/content/api/http-status-codes.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/introduction.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/invitations.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/media-uploads.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Media Uploads
description: Media Uploads API Reference
nav:
path: API
path: Media Uploads
order: 15
---
## Media Upload Model
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/object-ids.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Object IDs
description: Object Identifiers (IDs)
nav:
path: API
path: API Reference
order: 7
---

Expand Down
2 changes: 1 addition & 1 deletion src/content/api/pagination.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/profiles.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/quotas.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/api/settlements.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
7 changes: 7 additions & 0 deletions src/navigation/apiNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ 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 },
{ title: 'Batches', order: 10 },
{ title: 'Events', order: 11 },
{ title: 'Integrations', order: 12 },
{ title: 'Invitations', order: 13 },
{ title: 'Loyalty Programs', order: 14 },
{ title: 'Media Uploads', order: 15 },
{ title: 'Merchants', order: 16 },
{ title: 'Payment Requests', order: 17 },
{ title: 'Profiles', order: 18 },
{ title: 'Quotas', order: 19 },
{ title: 'Scanned Codes', order: 20 },
{ title: 'Settlements', order: 21 },
];

const collections = await getCollection('api');
Expand Down