@neuland-ingolstadt/backend-core-api 0.0.0-stage → 1.0.5
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 +37 -2
- package/index.js +2 -0
- package/openapi.yaml +1395 -0
- package/package.json +45 -4
- package/schema.d.ts +1442 -0
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@neuland-ingolstadt/backend-core-api`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript types (via `openapi-typescript`) and the OpenAPI 3.1 schema for
|
|
4
|
+
**Neuland Backend Core API v0**.
|
|
5
|
+
|
|
6
|
+
Published to [npmjs.com](https://www.npmjs.com/package/@neuland-ingolstadt/backend-core-api)
|
|
7
|
+
(public, no auth). Versioned with the Maven artifact
|
|
8
|
+
`app.neuland:backend-core-api-v0`. Releases are published from GitHub Actions via
|
|
9
|
+
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) (OIDC — no
|
|
10
|
+
long-lived tokens).
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
bun add @neuland-ingolstadt/backend-core-api
|
|
16
|
+
# or: npm install @neuland-ingolstadt/backend-core-api
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
No `.npmrc` or token required.
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import createClient from 'openapi-fetch'
|
|
25
|
+
import type { paths } from '@neuland-ingolstadt/backend-core-api'
|
|
26
|
+
|
|
27
|
+
const client = createClient<paths>({
|
|
28
|
+
baseUrl: 'https://core.api.neuland.app'
|
|
29
|
+
})
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Raw OpenAPI document:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import openApiUrl from '@neuland-ingolstadt/backend-core-api/openapi.yaml'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Or read `node_modules/@neuland-ingolstadt/backend-core-api/openapi.yaml`.
|
package/index.js
ADDED