-
Notifications
You must be signed in to change notification settings - Fork 138
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
Rest API tweaks for docs #6182
Merged
Merged
Rest API tweaks for docs #6182
Conversation
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
OpenAPI-Generator doesn't give nice output with multiple tags. (e.g. it generates multiple copies of the same link in the generated navigation) As discussed with Ben & Isaac, the multiple tags aren't hugely important so we've already removed in most places, but looks like I missed Public Only Endpoints in my previous commit.
This is recommended by OpenAPI Spec, and makes openapi-generator and some of the Docs tooling happy. I've generated these based on the METHOD + FILENAME and updated in batch with a bash + yq script.
As advised by @bbrks as this will verify that all endpoints have an operationID.
bbrks
approved these changes
Apr 12, 2023
torcolvin
pushed a commit
that referenced
this pull request
May 16, 2023
* Remove "Public Only Endpoints" tag. OpenAPI-Generator doesn't give nice output with multiple tags. (e.g. it generates multiple copies of the same link in the generated navigation) As discussed with Ben & Isaac, the multiple tags aren't hugely important so we've already removed in most places, but looks like I missed Public Only Endpoints in my previous commit. * Add operationId to all operations. This is recommended by OpenAPI Spec, and makes openapi-generator and some of the Docs tooling happy. I've generated these based on the METHOD + FILENAME and updated in batch with a bash + yq script. * Update .redocly.yaml As advised by @bbrks as this will verify that all endpoints have an operationID.
torcolvin
pushed a commit
that referenced
this pull request
May 16, 2023
* Remove "Public Only Endpoints" tag. OpenAPI-Generator doesn't give nice output with multiple tags. (e.g. it generates multiple copies of the same link in the generated navigation) As discussed with Ben & Isaac, the multiple tags aren't hugely important so we've already removed in most places, but looks like I missed Public Only Endpoints in my previous commit. * Add operationId to all operations. This is recommended by OpenAPI Spec, and makes openapi-generator and some of the Docs tooling happy. I've generated these based on the METHOD + FILENAME and updated in batch with a bash + yq script. * Update .redocly.yaml As advised by @bbrks as this will verify that all endpoints have an operationID.
torcolvin
added a commit
that referenced
this pull request
May 16, 2023
* Remove "Public Only Endpoints" tag. OpenAPI-Generator doesn't give nice output with multiple tags. (e.g. it generates multiple copies of the same link in the generated navigation) As discussed with Ben & Isaac, the multiple tags aren't hugely important so we've already removed in most places, but looks like I missed Public Only Endpoints in my previous commit. * Add operationId to all operations. This is recommended by OpenAPI Spec, and makes openapi-generator and some of the Docs tooling happy. I've generated these based on the METHOD + FILENAME and updated in batch with a bash + yq script. * Update .redocly.yaml As advised by @bbrks as this will verify that all endpoints have an operationID. Co-authored-by: Hakim <hakim.cassimally@couchbase.com>
bbrks
pushed a commit
that referenced
this pull request
May 16, 2023
Co-authored-by: Hakim <hakim.cassimally@couchbase.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CBG-0000
Describe your PR here...
Inviting @bbrks and @IsaacLambat to review and merge.
Pre-review checklist
fmt.Print
,log.Print
, ...)base.UD(docID)
,base.MD(dbName)
)docs/api
Dependencies (if applicable)
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/000/