Skip to content

Commit

Permalink
fix(playground): use correct servers for all of docs and playground (#52
Browse files Browse the repository at this point in the history
)
  • Loading branch information
fern-bot authored Sep 5, 2024
1 parent 25e1566 commit 49ce9bf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "chariot",
"version": "0.37.13"
"version": "0.41.1"
}
18 changes: 14 additions & 4 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
api:
path: ../specs/v1.yaml
overrides: ./openapi-overrides.yml
settings:
use-title: false
default-environment: Production
default-url: api
environments:
Production:
urls:
api: https://api.givechariot.com
login: https://login.givechariot.com/
Sandbox:
urls:
api: https://sandboxapi.givechariot.com
login: https://chariot-sandbox.us.auth0.com
specs:
- openapi: ../specs/v1.yaml
overrides: ./openapi-overrides.yml
groups:
ts-sdk:
generators:
Expand Down
8 changes: 1 addition & 7 deletions fern/openapi-overrides.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
servers:
- url: https://api.givechariot.com
description: API
x-fern-server-name: API
x-fern-pagination:
cursor: $request.pageToken
next_cursor: $response.nextPageToken
Expand Down Expand Up @@ -135,9 +131,7 @@ paths:
x-fern-sdk-group-name:
- auth
x-fern-sdk-method-name: getToken
servers:
- url: https://login.givechariot.com/
x-name: Login
x-fern-server-name: login
requestBody:
required: true
content:
Expand Down
5 changes: 4 additions & 1 deletion fern/versions/v1/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ navigation:
- api: API Reference
display-errors: true
snippets:
typescript: chariot
typescript: "@chariot-giving/typescript-sdk"
playground:
environments:
- Sandbox
layout:
- auth
- nonprofits
Expand Down

0 comments on commit 49ce9bf

Please sign in to comment.