Skip to content

Commit 4875669

Browse files
committed
rename spec file to defillama-openapi.json
1 parent cf15beb commit 4875669

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ pnpm dev:client:web
794794
3. Make request to `/prices/current/{coins}` endpoint
795795
4. Verify API key appears in final URL
796796
5. Reload page multiple times - no duplicate workspaces created
797-
6. Modify spec.json - changes immediately reflected
797+
6. Modify defillama-openapi.json - changes immediately reflected
798798

799799
#### 9. Future Extensibility
800800

File renamed without changes.

examples/web/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This example demonstrates how to use the Scalar API Reference components in a Vu
55
## Features
66

77
- Multiple API reference layouts (modern, classic, embedded)
8-
- Uses the DefiLlama API specification (`spec.json`) as the example OpenAPI document
8+
- Uses the DefiLlama API specification (`defillama-openapi.json`) as the example OpenAPI document
99
- **API Key Management**: Store and manage DefiLlama Pro API keys locally
1010
- Editable configuration with live preview
1111
- Dark mode support
@@ -14,7 +14,7 @@ This example demonstrates how to use the Scalar API Reference components in a Vu
1414

1515
## API Specification
1616

17-
The example uses the DefiLlama API specification located in `spec.json`. This file contains a comprehensive OpenAPI 3.0 specification with:
17+
The example uses the DefiLlama API specification located in `defillama-openapi.json`. This file contains a comprehensive OpenAPI 3.0 specification with:
1818

1919
- TVL (Total Value Locked) data endpoints
2020
- Cryptocurrency price data
@@ -75,7 +75,7 @@ pnpm build
7575

7676
To use your own OpenAPI specification:
7777

78-
1. Replace the `spec.json` file with your own OpenAPI document
78+
1. Replace the `defillama-openapi.json` file with your own OpenAPI document
7979
2. The components will automatically use the new specification
8080
3. Both JSON and YAML formats are supported
8181

examples/web/src/pages/StandaloneApiReferencePage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { ApiReference } from '@scalar/api-reference'
33
import { apiReferenceConfigurationSchema } from '@scalar/types/api-reference'
44
import { reactive } from 'vue'
55
6-
// Import the spec.json file
7-
import specContent from '../../../../spec.json'
6+
// Import the defillama-openapi.json file
7+
import specContent from '../../../../defillama-openapi.json'
88
import ApiKeyInput from '../components/ApiKeyInput.vue'
99
import SlotPlaceholder from '../components/SlotPlaceholder.vue'
1010

0 commit comments

Comments
 (0)