Skip to content

Commit 474639e

Browse files
authored
Merge pull request #1891 from hey-api/docs/custom-client
docs: add custom client page
2 parents 0669e89 + 9505d41 commit 474639e

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

docs/.vitepress/config/en.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default defineConfig({
5353
collapsed: true,
5454
items: [
5555
{
56-
link: '/openapi-ts/custom-plugin',
56+
link: '/openapi-ts/plugins/custom',
5757
text: 'Custom Plugin',
5858
},
5959
],
@@ -79,6 +79,10 @@ export default defineConfig({
7979
link: '/openapi-ts/clients/nuxt',
8080
text: 'Nuxt',
8181
},
82+
{
83+
link: '/openapi-ts/clients/custom',
84+
text: 'Custom Client',
85+
},
8286
{
8387
link: '/openapi-ts/clients/legacy',
8488
text: 'Legacy',

docs/openapi-ts/clients/custom.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Custom Client
3+
description: Learn how to create your own Hey API client.
4+
---
5+
6+
# Custom Client
7+
8+
::: warning
9+
Client API is in development. The interface might change before it becomes stable. We encourage you to leave feedback on [GitHub](https://github.com/hey-api/openapi-ts/issues/1213).
10+
:::
11+
12+
You may need to write your own client if the available clients do not suit your needs or you're working on a proprietary use case. This can be easily achieved using the Client API. But don't take our word for it – all Hey API clients are written this way!
13+
14+
::: warning
15+
Custom clients documentation will be finalized after further testing. Simplified [instructions](https://github.com/hey-api/openapi-ts/issues/1213#issuecomment-2765206344) can be found in the GitHub thread.
16+
:::
17+
18+
<!--@include: ../../examples.md-->
19+
<!--@include: ../../sponsors.md-->

docs/openapi-ts/custom-plugin.md renamed to docs/openapi-ts/plugins/custom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,5 @@ export const foo = 'Hello, world!';
192192

193193
Congratulations! You've successfully created your own plugin! :tada:
194194

195-
<!--@include: ../examples.md-->
196-
<!--@include: ../sponsors.md-->
195+
<!--@include: ../../examples.md-->
196+
<!--@include: ../../sponsors.md-->

docs/vercel.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"source": "/openapi-ts",
1010
"destination": "/openapi-ts/get-started",
1111
"permanent": true
12+
},
13+
{
14+
"source": "/openapi-ts/custom-plugin",
15+
"destination": "/openapi-ts/plugins/custom",
16+
"permanent": true
1217
}
1318
],
1419
"trailingSlash": false

0 commit comments

Comments
 (0)