Skip to content

Commit fb6bd4b

Browse files
author
Dan Costello
committed
Generate OPENAPI
1 parent 1a118fb commit fb6bd4b

File tree

141 files changed

+9028
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+9028
-21
lines changed

app/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Layout({ children }: { children: ReactNode }) {
1919
title: 'Reference',
2020
text: 'Reference',
2121
icon: '🔍',
22-
url: '/docs/reference',
22+
url: '/reference',
2323
description: 'API reference',
2424
},
2525
],

app/global.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import 'tailwindcss';
22
@import 'fumadocs-ui/css/preset.css';
3+
@import 'fumadocs-openapi/css/preset.css';
34

45
@theme {
56
--fd-sidebar-width: 0px;
@@ -11,7 +12,7 @@
1112
/* --default-font-family: ; */
1213

1314
--color-fd-background: hsl(0, 0%, 98%);
14-
--color-fd-foreground: hsl(0, 0%, 15%);
15+
--color-fd-foreground: hsl(0, 0%, 20%);
1516
--color-fd-muted: hsl(220, 90%, 96.1%);
1617
--color-fd-muted-foreground: hsl(0, 0%, 35%);
1718
--color-fd-popover: hsl(0, 0%, 98%);
@@ -39,7 +40,7 @@
3940
--color-fd-card-foreground: hsl(220, 60%, 94%);
4041
--color-fd-border: hsla(220, 50%, 50%, 0.2);
4142
--color-fd-primary: hsl(205, 100%, 85%);
42-
--color-fd-primary-foreground: hsl(0, 0%, 9%);
43+
--color-fd-primary-foreground: hsl(0, 0%, 20%);
4344
--color-fd-secondary: hsl(220, 50%, 20%);
4445
--color-fd-secondary-foreground: hsl(220, 80%, 90%);
4546
--color-fd-accent: hsl(220, 40%, 20%);

bun.lock

Lines changed: 146 additions & 15 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: List User Base Profiles
3+
full: true
4+
_openapi:
5+
method: GET
6+
route: /authn/baseprofiles
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: >-
12+
This endpoint returns a paginated list of user base profiles in a
13+
tenant. The list can be filtered to only include users inside a
14+
specified organization.
15+
---
16+
17+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
18+
19+
This endpoint returns a paginated list of user base profiles in a tenant. The list can be filtered to only include users inside a specified organization.
20+
21+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/baseprofiles","method":"get"}]} webhooks={[]} hasHead={false} />
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: List Users
3+
full: true
4+
_openapi:
5+
method: GET
6+
route: /authn/users
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: >-
12+
This endpoint returns a paginated list of users in a tenant. The list
13+
can be filtered to only include users inside a specified organization.
14+
---
15+
16+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
17+
18+
This endpoint returns a paginated list of users in a tenant. The list can be filtered to only include users inside a specified organization.
19+
20+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/users","method":"get"}]} webhooks={[]} hasHead={false} />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Delete User
3+
full: true
4+
_openapi:
5+
method: DELETE
6+
route: /authn/users/{id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: This endpoint deletes a user by ID.
12+
---
13+
14+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
15+
16+
This endpoint deletes a user by ID.
17+
18+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/users/{id}","method":"delete"}]} webhooks={[]} hasHead={false} />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Get User
3+
full: true
4+
_openapi:
5+
method: GET
6+
route: /authn/users/{id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: This endpoint gets a user by ID.
12+
---
13+
14+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
15+
16+
This endpoint gets a user by ID.
17+
18+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/users/{id}","method":"get"}]} webhooks={[]} hasHead={false} />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Update User
3+
full: true
4+
_openapi:
5+
method: PUT
6+
route: /authn/users/{id}
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: This endpoint updates a specified user.
12+
---
13+
14+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
15+
16+
This endpoint updates a specified user.
17+
18+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/users/{id}","method":"put"}]} webhooks={[]} hasHead={false} />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Create User
3+
full: true
4+
_openapi:
5+
method: POST
6+
route: /authn/users
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: This endpoint creates a user.
12+
---
13+
14+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
15+
16+
This endpoint creates a user.
17+
18+
<APIPage document={"content/openapi/authn.yaml"} operations={[{"path":"/authn/users","method":"post"}]} webhooks={[]} hasHead={false} />
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Check Attribute
3+
full: true
4+
_openapi:
5+
method: GET
6+
route: /authz/checkattribute
7+
toc: []
8+
structuredData:
9+
headings: []
10+
contents:
11+
- content: >-
12+
This endpoint receives a source object ID, target object ID and
13+
attribute. It returns a boolean indicating whether the source object
14+
has the attribute permission on the target object.
15+
---
16+
17+
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
18+
19+
This endpoint receives a source object ID, target object ID and attribute. It returns a boolean indicating whether the source object has the attribute permission on the target object.
20+
21+
<APIPage document={"content/openapi/authz.yaml"} operations={[{"path":"/authz/checkattribute","method":"get"}]} webhooks={[]} hasHead={false} />

0 commit comments

Comments
 (0)