Skip to content

Commit d7b66de

Browse files
authored
Update API playground docs (#530)
* add playground config per page * reword
1 parent 3799135 commit d7b66de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api-playground/mdx/configuration.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ Mintlify allows you to define your API endpoints using a combination of `docs.js
5656
If you have `server` configured in [docs.json](/settings/global), you can use relative paths like `/v1/endpoint`.
5757

5858
</Note>
59+
60+
You can also override the globally-defined display mode for the API playground per page by adding `playground` at the top of the MDX file:
61+
62+
```md
63+
---
64+
title: 'Create new user'
65+
api: 'POST https://api.mintlify.com/user'
66+
playground: 'none'
67+
```
68+
5969
</Step>
6070

6171
<Step title="Add your endpoints to your docs">

0 commit comments

Comments
 (0)