Skip to content

Commit

Permalink
added info about routes in local env
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Jul 30, 2023
1 parent 188f074 commit bc7811c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ After install you will have 2 routes added to your application:
- `/docs/api` - UI viewer for your documentation
- `/docs/api.json` - Open API document in JSON format describing your API.

By default, these routes are available only in `local` environment. You can change this behavior by defining `viewApiDocs` gate.

---

<p>
Expand Down
4 changes: 3 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ When Scramble is installed, 2 routes are added to your application:
- `/docs/api` - UI viewer for your documentation
- `/docs/api.json` - Open API document in JSON format describing your API.

And that's it! You can now visit `/docs/api` to see your API documentation.
And that's it! You can now visit `/docs/api` to see your API documentation.

By default, these routes are available only in `local` environment. You can change this behavior by defining `viewApiDocs` gate.

## Models attributes support

Expand Down

0 comments on commit bc7811c

Please sign in to comment.