-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 5.12 OpenAPI Specifications (#814)
* Add 5.12 OpenAPI Specifications * Switch to type module export
- Loading branch information
1 parent
694ad0b
commit 0020363
Showing
8 changed files
with
16,885 additions
and
52 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
const openapiConfig = (baseUrl) => ({ | ||
config: { | ||
designApi: { | ||
specPath: | ||
'https://raw.githubusercontent.com/reportportal/reportportal-common-api/main/api/openapi/reportportal.yaml', | ||
outputDir: 'docs/api/api-design', | ||
sidebarOptions: { | ||
groupPathsBy: 'tag', | ||
categoryLinkSource: 'tag', | ||
}, | ||
}, | ||
serviceApi: { | ||
// "serviceApi" is considered the <id> that you will reference in the CLI | ||
specPath: 'apis/service-api.json', // path or URL to the OpenAPI spec | ||
outputDir: 'docs/api/service-api', // output directory for generated *.mdx and sidebar.js files | ||
sidebarOptions: { | ||
groupPathsBy: 'tag', // generate a sidebar.js slice that groups operations by tag | ||
categoryLinkSource: 'tag', | ||
}, | ||
version: '5.12', | ||
label: 'v5.12', | ||
baseUrl: `${baseUrl}category/api/service-api`, // base URL for the API docs, | ||
versions: { | ||
5.11: { | ||
specPath: 'apis/5.11/service-api.yaml', | ||
outputDir: 'docs/api/service-api/versions/5.11', | ||
label: 'v5.11', | ||
baseUrl: `${baseUrl}category/api/service-api-5.11`, | ||
}, | ||
'5.10': { | ||
specPath: 'apis/5.10/service-api.yaml', | ||
outputDir: 'docs/api/service-api/versions/5.10', | ||
label: 'v5.10', | ||
baseUrl: `${baseUrl}category/api/service-api-5.10`, | ||
}, | ||
}, | ||
}, | ||
serviceUat: { | ||
specPath: 'apis/service-uat.json', | ||
outputDir: 'docs/api/service-uat', | ||
sidebarOptions: { | ||
groupPathsBy: 'tag', | ||
categoryLinkSource: 'tag', | ||
}, | ||
version: '5.12', | ||
label: 'v5.12', | ||
baseUrl: `${baseUrl}category/api/service-uat`, | ||
versions: { | ||
5.11: { | ||
specPath: 'apis/5.11/service-uat.yaml', | ||
outputDir: 'docs/api/service-uat/versions/5.11', | ||
label: 'v5.11', | ||
baseUrl: `${baseUrl}category/api/service-uat-5.11`, | ||
}, | ||
'5.10': { | ||
specPath: 'apis/5.10/service-uat.yaml', | ||
outputDir: 'docs/api/service-uat/versions/5.10', | ||
label: 'v5.10', | ||
baseUrl: `${baseUrl}category/api/service-uat-5.10`, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
export default openapiConfig; |