-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b855653
commit 65764da
Showing
15 changed files
with
152 additions
and
145 deletions.
There are no files selected for viewing
22 changes: 11 additions & 11 deletions
22
.vitepress/scripts/templates/operations/[operationId].paths.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/REPLACE_REGION/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/argentina/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/bolivia/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/brazil/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/chile/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/colombia/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/mexico/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"postcss": "^8.4.39", | ||
"tailwindcss": "^3.4.6", | ||
"vitepress": "^1.3.1", | ||
"vitepress-openapi": "0.0.3-alpha.38" | ||
"vitepress-openapi": "^0.0.3-alpha.44" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/paraguay/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/peru/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/republica-dominicana/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { OpenApi } from 'vitepress-openapi' | ||
import { usePaths } from 'vitepress-openapi' | ||
import spec from '../../public/uruguay/openapi.json' assert { type: 'json' } | ||
|
||
export default { | ||
paths() { | ||
const openapi = OpenApi({ spec }) | ||
|
||
return openapi.getPathsByVerbs().map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
return usePaths({ spec }) | ||
.getPathsByVerbs() | ||
.map(({ operationId, summary }) => { | ||
return { | ||
params: { | ||
operationId, | ||
pageTitle: `${summary} - CriptoYa API`, | ||
}, | ||
} | ||
}) | ||
}, | ||
} |
Oops, something went wrong.