Commit Graph
9 Commits
Author SHA1 Message Date
Fuma Nama 9405fa3eaf Chore: Switch to tsdown for bundling 2025-12-29 18:16:01 +08:00
Fuma Nama c80f4d601d UI: migrate Base UI 2025-12-16 22:21:16 +08:00
Fuma Nama e58fdafdb9 Bundle lucide-react as part of library 2025-04-25 19:34:03 +08:00
Fuma Nama 17a692935e OpenAPI: support application/x-www-form-urlencoded 2025-04-14 12:44:15 +08:00
Fuma Nama a5eb485a56 UI: move certain logic from page to layouts 2024-11-26 19:49:26 +08:00
Fuma Nama ed4897cc61 chore: fix eslint 2024-11-25 19:46:26 +08:00
bb1841177c Feature | API Playground (#565)
* CHANGED:
- Added InteractiveButton component
- Updated APIInfo design and added ability to copy the endpoint url
- Installed shiki to fumadocs-ui
- Added api-context

Signed-off-by: kyrylolvov <[email protected]>

* CHANGED:
- Updated APIInfo to render differently depending on whether children are passed
- Added SendButton component

Signed-off-by: kyrylolvov <[email protected]>

* CHANGED:
- Added statusMap and getStatusInfo function which returns description and icon for response

Signed-off-by: kyrylolvov <[email protected]>

* CHANGED:
- Added a new CodeBlock component, which is used to render API response

Signed-off-by: kyrylolvov <[email protected]>

* CHANGED:
- Installed required radix-ui dependencies for input, label, form shadcn components
- Added APIPlayground and ArrayInput components to API

Signed-off-by: kyrylolvov <[email protected]>

* CHANGED:
- Updated defaultBaseUrl in RootProvider
- Fixed errors
- Updated docs

Signed-off-by: kyrylolvov <[email protected]>

* Update pnpm-lock

* Rewrite API Playground

* Clean code

* OpenAPI: Support passing base url to Root component

* Update lock file

* Update test snapshots

* Fix lint issues

* Update API usages

* OpenAPI & UI: Generate Playground from MDX files

* Fix problems

* Improve design

* Handle self-referencing types

* Clean code

* Add switcher UI

* Add unkey for testing

* OpenAPI: Combine `allOf` into one object schema

* Update unkey.json

* OpenAPI & UI: Support optional boolean values

* OpenAPI & UI: Support `additionalProperties` field

* Update test snapshots

* OpenAPI & UI: Clean code & support removing additional properties

* OpenAPI: Improve title generation

* UI: Improve implmentation

* OpenAPI & UI: Improve Implementation

* Remove unkey.json from docs

* OpenAPI & UI: Move UI part of OpenAPI to `fumadocs-openapi`

* OpenAPI & UI: Improve UI implementation

* OpenAPI: Fix dynamic references issues

* OpenAPI: Handle unregistering additional properties

* Docs: Rewrite docs

---------

Signed-off-by: kyrylolvov <[email protected]>
Co-authored-by: fuma-nama <[email protected]>
Co-authored-by: Fuma Nama <[email protected]>
2024-07-14 21:02:36 +08:00
Fuma Nama e82feb3257 Add unit tests for OpenAPI generator 2024-01-14 00:27:48 +08:00
Fuma Nama 2fd73fc514 Experimental: Add Open API generator 2024-01-10 20:15:32 +08:00