Skip to content

Commit 6587a84

Browse files
committed
tokenserver url and doc refs
1 parent ed6d5f9 commit 6587a84

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

docs/src/open-api-docs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ The project automatically publishes API documentation to GitHub Pages:
1515
- **OpenAPI/Swagger UI**: https://mozilla-services.github.io/syncstorage-rs/swagger-ui/
1616

1717
#### When the service is running (live deployment):
18-
It is suggested to use the stage instance of Sync when playing with the API,
18+
It is suggested to use the stage instance of Sync and/or Tokenserver when playing with the API,
1919
though you may also interact with your data in the production instance.
2020

2121
The Prod and Stage environments below will be available as a drop-down in the SwaggerUI:
22-
- **Stage**: `https://sync-us-west1-g.sync.services.allizom.org`.
23-
- **Prod**: `https://sync-1-us-west1-g.sync.services.mozilla.com`.
22+
- **Sync Stage**: `https://sync-us-west1-g.sync.services.allizom.org`.
23+
- **Sync Prod**: `https://sync-1-us-west1-g.sync.services.mozilla.com`.
24+
- **Tokenserver Stage**: `https://stage-tokenserver.sync.nonprod.webservices.mozgcp.net`.
25+
- **Tokenserver Prod**: `https://prod-tokenserver.sync.prod.webservices.mozgcp.net`.
2426

2527
URLs for Swagger and OpenAPI Spec:
2628
- **Swagger UI (Interactive)**: `https://<your-deployment-url>/swagger-ui/`

syncserver/src/server/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ pub fn cfg_path(path: &str) -> String {
8787
description = "OpenAPI documentation for Syncstorage and Tokenserver endpoints."
8888
),
8989
servers(
90-
(url = "https://sync-us-west1-g.sync.services.allizom.org", description = "US West Stage"),
91-
(url = "https://sync-1-us-west1-g.sync.services.mozilla.com", description = "US West Production"),
90+
(url = "https://stage-tokenserver.sync.nonprod.webservices.mozgcp.net", description = "Tokenserver Stage"),
91+
(url = "https://prod-tokenserver.sync.prod.webservices.mozgcp.net", description = "Tokenserver Production"),
92+
(url = "https://sync-us-west1-g.sync.services.allizom.org", description = "Syncstorage - US West Stage"),
93+
(url = "https://sync-1-us-west1-g.sync.services.mozilla.com", description = "Syncstorage - US West Prod"),
9294
),
9395
paths(
9496
// Syncstorage general info endpoints.

0 commit comments

Comments
 (0)