Repository navigation
REST API reference for SaaS #3419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4f0cb2d
REST API reference for SaaS
mnocon b602f7e
Changed title. Removed corporate account schema
mnocon bad6fcf
Reworked approach
mnocon 9a92f7e
Fixed logo
mnocon d587983
Removed sorting of responses and requests
mnocon 42c1b23
REST API Reference v6.0.x-dev (#3430)
ezrobot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
94,096 changes: 39,640 additions & 54,456 deletions
94,096
docs/api/rest_api/rest_api_reference/openapi.json
Large diffs are not rendered by default.
Oops, something went wrong.
76,391 changes: 31,301 additions & 45,090 deletions
76,391
docs/api/rest_api/rest_api_reference/openapi.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
9,541 changes: 5,102 additions & 4,439 deletions
9,541
docs/api/rest_api/rest_api_reference/rest_api_reference.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,37 @@ | ||
| // Redocly decorators adapting the dumped OpenAPI schema to SaaS, complementing the built-in ones configured in redocly.yaml. | ||
| module.exports = function saasPlugin() { | ||
| return { | ||
| id: 'saas', | ||
| decorators: { | ||
| oas3: { | ||
| // Edition badges are meaningless on SaaS. | ||
| 'remove-badges': () => ({ | ||
| Operation: { | ||
| leave(operation) { | ||
| delete operation['x-badges']; | ||
| }, | ||
| }, | ||
| }), | ||
| // Tags left without operations by filter-out would still be displayed as empty groups. | ||
| 'remove-unused-tags': () => { | ||
| const usedTags = new Set(); | ||
|
|
||
| return { | ||
| Operation: { | ||
| leave(operation) { | ||
| (operation.tags || []).forEach((tag) => usedTags.add(tag)); | ||
| }, | ||
| }, | ||
| Root: { | ||
| leave(root) { | ||
| if (root.tags) { | ||
| root.tags = root.tags.filter((tag) => usedTags.has(tag.name)); | ||
| } | ||
| }, | ||
| }, | ||
| }; | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
| }; |
This file contains hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About this, Claude says the following: