@lunch-money/developer-docs 2.11.1-preview.2 → 2.11.1-preview.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -11
- package/docs/introduction.md +0 -4
- package/package.json +1 -1
- package/v2/spec/lunch-money-api-v2.yaml +17 -15
package/README.md
CHANGED
|
@@ -1,24 +1,65 @@
|
|
|
1
1
|
# @lunch-money/developer-docs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Documentation content for the [Lunch Money](https://lunchmoney.app) developer APIs —
|
|
4
|
+
the guides, v1/v2 reference docs, images, and doc-routing manifest that power the
|
|
5
|
+
[Lunch Money developer portal](https://lunchmoney.dev).
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Most API consumers want the OpenAPI spec instead: **[`@lunch-money/v2-api-spec`](https://www.npmjs.com/package/@lunch-money/v2-api-spec)**
|
|
8
|
+
is the canonical machine-readable API contract. This package is the human-facing docs
|
|
9
|
+
content, primarily for the docs server that renders the portal.
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
- `v1/`
|
|
9
|
-
- `v2/`
|
|
10
|
-
- `manifest.json`
|
|
11
|
+
## What's in the package
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Shipped verbatim at the package root:
|
|
14
|
+
|
|
15
|
+
- `docs/` — version-independent guides (getting started, pagination, rate limiting, …)
|
|
16
|
+
- `v1/` — v1 API reference markdown
|
|
17
|
+
- `v2/` — v2 guides, images, and a **convenience copy** of the OpenAPI YAML under
|
|
18
|
+
`v2/spec/` (non-canonical; the canonical spec is `@lunch-money/v2-api-spec`)
|
|
19
|
+
- `manifest.json` — doc routes, redirects, and sidebar structure
|
|
20
|
+
|
|
21
|
+
## Consuming the content
|
|
22
|
+
|
|
23
|
+
Resolve the package root, then read content files relative to it:
|
|
13
24
|
|
|
14
25
|
```js
|
|
26
|
+
const path = require('path');
|
|
27
|
+
const fs = require('fs');
|
|
28
|
+
|
|
15
29
|
const docsRoot = path.dirname(require.resolve('@lunch-money/developer-docs/package.json'));
|
|
30
|
+
const intro = fs.readFileSync(path.join(docsRoot, 'docs/getting-started.md'), 'utf8');
|
|
16
31
|
```
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
`manifest.json` describes every page the docs server renders:
|
|
34
|
+
|
|
35
|
+
```jsonc
|
|
36
|
+
{
|
|
37
|
+
"pages": [
|
|
38
|
+
{
|
|
39
|
+
"path": "/amounts-and-balances", // canonical URL
|
|
40
|
+
"file": "docs/amounts-and-balances.md", // path within this package
|
|
41
|
+
"title": "Amounts & Balances",
|
|
42
|
+
"section": "GUIDES", // sidebar grouping
|
|
43
|
+
"type": "markdown", // "markdown" | "html" | "v1-slate"
|
|
44
|
+
"aliases": ["/v2/amounts-and-balances"] // legacy URLs → 301 to path
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"redirects": [ /* { from, to, status } */ ],
|
|
48
|
+
"sidebar": { "docs": [ /* … */ ], "v1": [ /* … */ ] }
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Versioning
|
|
53
|
+
|
|
54
|
+
The package version tracks the newest API version this content documents (e.g. `2.11.x`
|
|
55
|
+
documents the v2.11 API). Pin an exact version in server deployments so docs are
|
|
56
|
+
deterministic.
|
|
19
57
|
|
|
20
|
-
##
|
|
58
|
+
## Contributing
|
|
21
59
|
|
|
22
|
-
|
|
60
|
+
Guides, spec, and the routing manifest are edited in the public
|
|
61
|
+
[`developer-docs` repository](https://github.com/lunch-money/developer-docs) — see its
|
|
62
|
+
README for how to add or move a page. This npm package is a published build of that
|
|
63
|
+
content.
|
|
23
64
|
|
|
24
|
-
|
|
65
|
+
_ISC licensed._
|
package/docs/introduction.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Welcome to the Lunch Money developer documentation. This site covers the **v2 API** — the current generation of the Lunch Money API — along with guides, a reference for the legacy v1 API, and tools for exploring the API without touching real data.
|
|
4
4
|
|
|
5
|
-
> [!WARNING]
|
|
6
|
-
> Alpha Release
|
|
7
|
-
> The v2 API is in open alpha. It is subject to change during this review period and bugs may exist. We strongly encourage using the [mock service](#trying-the-api-without-real-data) or a test budget with sample data as your first step.
|
|
8
|
-
|
|
9
5
|
## Getting Started
|
|
10
6
|
|
|
11
7
|
The v2 API is available at:
|
package/package.json
CHANGED
|
@@ -2,11 +2,13 @@ openapi: 3.0.2
|
|
|
2
2
|
info:
|
|
3
3
|
title: Lunch Money API - v2
|
|
4
4
|
description: |-
|
|
5
|
+
Welcome to the Lunch Money v2 API reference. This is the **v2.11.1** spec.
|
|
6
|
+
|
|
5
7
|
### Introduction
|
|
6
8
|
|
|
7
|
-
The API is available at `https://
|
|
9
|
+
The API is available at `https://lunchmoney.dev/v2`. Get your access token from the [Lunch Money developers page](https://my.lunchmoney.app/developers).
|
|
8
10
|
|
|
9
|
-
<span class="red-text"><strong>
|
|
11
|
+
API calls can <span class="red-text"><strong>change or delete</strong></span> your data. Any changes you make are <span class="red-text"><strong>permanent</strong></span>, just like they would be if you made changes using the web or mobile app. Please refer to the [Getting Started Guide](https://lunchmoney.dev/v2/getting-started) before using the API.
|
|
10
12
|
|
|
11
13
|
**Static Mock Server**
|
|
12
14
|
|
|
@@ -18,15 +20,15 @@ info:
|
|
|
18
20
|
|
|
19
21
|
**Migrating from v1**
|
|
20
22
|
|
|
21
|
-
The v2 API is not backwards compatible with v1. See the [Migration Guide](https://
|
|
23
|
+
The v2 API is not backwards compatible with v1. See the [Migration Guide](https://lunchmoney.dev/v2/migration-guide) for details.
|
|
22
24
|
|
|
23
25
|
**Useful links**
|
|
24
|
-
- [Developer Portal](https://
|
|
25
|
-
- [Getting Started Guide](https://
|
|
26
|
-
- [v2 API Overview](https://
|
|
27
|
-
- [Version History](https://
|
|
28
|
-
- [Migration Guide](https://
|
|
29
|
-
- [Rate Limits](https://
|
|
26
|
+
- [Developer Portal](https://lunchmoney.dev/v2/introduction)
|
|
27
|
+
- [Getting Started Guide](https://lunchmoney.dev/v2/getting-started)
|
|
28
|
+
- [v2 API Overview](https://lunchmoney.dev/v2/overview)
|
|
29
|
+
- [Version History](https://lunchmoney.dev/v2/version-history)
|
|
30
|
+
- [Migration Guide](https://lunchmoney.dev/v2/migration-guide)
|
|
31
|
+
- [Rate Limits](https://lunchmoney.dev/v2/rate-limits)
|
|
30
32
|
termsOfService: https://lunchmoney.dev/#current-status
|
|
31
33
|
contact:
|
|
32
34
|
email: devsupport@lunchmoney.app
|
|
@@ -38,8 +40,8 @@ info:
|
|
|
38
40
|
servers:
|
|
39
41
|
- url: https://api.lunchmoney.dev/v2
|
|
40
42
|
description: v2 Lunch Money API Server - changes will affect real data!
|
|
41
|
-
# - url: https://
|
|
42
|
-
- url: https://
|
|
43
|
+
# - url: https://lunchmoney.dev/v2
|
|
44
|
+
- url: https://lunchmoney.dev/v2
|
|
43
45
|
description: Static mock version of the v2 Lunch Money API Server
|
|
44
46
|
|
|
45
47
|
tags:
|
|
@@ -2940,7 +2942,7 @@ components:
|
|
|
2940
2942
|
currency:
|
|
2941
2943
|
description: Three-letter lowercase currency code of the transaction
|
|
2942
2944
|
in ISO 4217 format. Must match one of the [supported
|
|
2943
|
-
currencies](https://
|
|
2945
|
+
currencies](https://lunchmoney.dev/v2/currencies). If not set
|
|
2944
2946
|
defaults to the user account's primary currency.
|
|
2945
2947
|
allOf:
|
|
2946
2948
|
- $ref: "#/components/schemas/currencyEnum"
|
|
@@ -9097,19 +9099,19 @@ paths:
|
|
|
9097
9099
|
description: Sets the maximum number of transactions to return. If
|
|
9098
9100
|
more match the filter criteria, the response will include a
|
|
9099
9101
|
`has_more` attribute set to `true`. See
|
|
9100
|
-
[Pagination](https://
|
|
9102
|
+
[Pagination](https://lunchmoney.dev/v2/pagination)
|
|
9101
9103
|
- name: offset
|
|
9102
9104
|
in: query
|
|
9103
9105
|
schema:
|
|
9104
9106
|
type: integer
|
|
9105
9107
|
description: Sets the offset for the records returned. This is
|
|
9106
9108
|
typically set automatically in the header. See
|
|
9107
|
-
[Pagination](https://
|
|
9109
|
+
[Pagination](https://lunchmoney.dev/v2/pagination)
|
|
9108
9110
|
responses:
|
|
9109
9111
|
"200":
|
|
9110
9112
|
description: Returns an array of transactions. <br><br>The `has_more`
|
|
9111
9113
|
property is set to `true` if more transactions are available. See
|
|
9112
|
-
[Pagination](https://
|
|
9114
|
+
[Pagination](https://lunchmoney.dev/v2/pagination)
|
|
9113
9115
|
content:
|
|
9114
9116
|
application/json:
|
|
9115
9117
|
schema:
|