@veluai/velu 0.1.15 → 0.1.16
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/dist/cli.js +44 -23
- package/package.json +2 -1
- package/runtime/velu-ui/components/ApiClient.jsx +84 -8
- package/runtime/velu-ui/components/ApiReferencePage.jsx +388 -0
- package/runtime/velu-ui/components/ApiSamples.jsx +36 -0
- package/runtime/velu-ui/components/Sidebar.jsx +10 -2
- package/runtime/velu-ui/components/TryItBar.jsx +15 -3
- package/runtime/velu-ui/components/api-page.css +215 -0
- package/runtime/velu-ui/components/api.css +117 -1
- package/runtime/velu-ui/index.js +2 -0
- package/runtime/velu-ui/lib/api-send.js +92 -0
- package/runtime/velu-ui/styles.css +1 -0
- package/schema/velu.schema.json +46 -0
- package/src/navigation.js +11 -2
- package/src/runtime/App.jsx +33 -6
- package/templates/starter/api-reference/introduction.mdx +29 -14
- package/templates/starter/openapi.json +160 -0
- package/templates/starter/velu.json +6 -2
- package/templates/starter/api-reference/endpoint/create.mdx +0 -24
- package/templates/starter/api-reference/endpoint/get.mdx +0 -27
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Create item
|
|
3
|
-
description: Create a new item.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<MethodBadge method="POST" /> `/items`
|
|
7
|
-
|
|
8
|
-
Creates an item and returns it.
|
|
9
|
-
|
|
10
|
-
## Body
|
|
11
|
-
|
|
12
|
-
<ApiField name="name" type="string" required>
|
|
13
|
-
Display name for the item.
|
|
14
|
-
</ApiField>
|
|
15
|
-
|
|
16
|
-
## Response
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"id": "itm_2",
|
|
21
|
-
"name": "New item",
|
|
22
|
-
"created_at": "2024-01-01T00:00:00Z"
|
|
23
|
-
}
|
|
24
|
-
```
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Get items
|
|
3
|
-
description: Retrieve a list of items.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<MethodBadge method="GET" /> `/items`
|
|
7
|
-
|
|
8
|
-
Returns a paginated list of items.
|
|
9
|
-
|
|
10
|
-
## Query parameters
|
|
11
|
-
|
|
12
|
-
<ApiField name="limit" type="integer" default="20">
|
|
13
|
-
Maximum number of items to return.
|
|
14
|
-
</ApiField>
|
|
15
|
-
|
|
16
|
-
<ApiField name="cursor" type="string">
|
|
17
|
-
Pagination cursor from a previous response.
|
|
18
|
-
</ApiField>
|
|
19
|
-
|
|
20
|
-
## Response
|
|
21
|
-
|
|
22
|
-
```json
|
|
23
|
-
{
|
|
24
|
-
"data": [{ "id": "itm_1", "name": "Example" }],
|
|
25
|
-
"next_cursor": null
|
|
26
|
-
}
|
|
27
|
-
```
|