Skip to content

Commit 9bb1d35

Browse files
committed
Use remote Aptos Open API spec
1 parent 1ce7273 commit 9bb1d35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ export default defineConfig({
124124
{
125125
base: "rest-api",
126126
label: "REST API",
127-
schema: "./public/aptos-spec.json",
127+
schema:
128+
"https://raw.githubusercontent.com/aptos-labs/aptos-core/refs/heads/main/api/doc/spec.json",
128129
sidebarMethodBadges: true,
129130
},
130131
],

src/components/OpenAPI/operation/OperationExamples/OperationScalarModal.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import "@scalar/api-client/style.css";
5656
const { open } = await createApiClientModal({
5757
el: scalarContainer,
5858
configuration: {
59-
url: "/aptos-spec.json",
59+
url: "https://raw.githubusercontent.com/aptos-labs/aptos-core/refs/heads/main/api/doc/spec.json",
6060
servers,
6161
showSidebar: false,
6262
hideClientButton: true,

0 commit comments

Comments
 (0)