-
Notifications
You must be signed in to change notification settings - Fork 289
RED-174158: Add Redis Cluster API in docs #2418
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
Open
sonya-spasova
wants to merge
6
commits into
main
Choose a base branch
from
sonya-spasova-onboard-cluster-api-RED-174158
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+249
−0
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4f5d364
RED-174158: Automate cluster API docs
sonya-spasova 6488e80
RED-174158: Add Redis Cluster API in docs
sonya-spasova c42caac
address comments to move content
sonya-spasova 28a2b5b
regenerate openapi.json
sonya-spasova d30e3bf
address comments
sonya-spasova fabb002
remove migrations,add authentication
sonya-spasova 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| Title: Redis Enterprise API | ||
| linkTitle: API reference | ||
| layout: apireference | ||
| type: page | ||
| --- |
243 changes: 243 additions & 0 deletions
243
content/operate/rs/references/rest-api/api-reference/openapi.json
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,243 @@ | ||||||
| { | ||||||
| "openapi": "3.0.3", | ||||||
| "info": { | ||||||
| "title": "Authentication Service REST API", | ||||||
| "description": "REST API for the Authentication Service, primarily used for exposing SSO related endpoints.", | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sonya-spasova, if there's not a good way to add a work-in-progress banner to the new API reference page, maybe just adding something like this to the description will be good enough? I tested this change in my local env and was able to see the message under the page title.
Suggested change
|
||||||
| "version": "1.0.0" | ||||||
| }, | ||||||
| "servers": [ | ||||||
| { | ||||||
| "url": "https://localhost:9443" | ||||||
| } | ||||||
| ], | ||||||
| "paths": { | ||||||
| "/v1/auth/sso/saml/login": { | ||||||
| "get": { | ||||||
| "x-stability-level": "stable", | ||||||
| "x-publish-docs": true, | ||||||
| "summary": "Starts SP-initiated SAML login flow", | ||||||
| "description": "Generates a redirect URL to the IdP for SAML authentication.", | ||||||
| "operationId": "login", | ||||||
| "tags": [ | ||||||
| "Auth" | ||||||
| ], | ||||||
| "parameters": [ | ||||||
| { | ||||||
| "name": "relayState", | ||||||
| "in": "query", | ||||||
| "required": false, | ||||||
| "schema": { | ||||||
| "type": "string" | ||||||
| }, | ||||||
| "description": "An optional relay state to be included in the SAML request." | ||||||
| } | ||||||
| ], | ||||||
| "responses": { | ||||||
| "200": { | ||||||
| "$ref": "#/components/responses/SamlLoginResponse" | ||||||
| }, | ||||||
| "400": { | ||||||
| "$ref": "#/components/responses/BadRequest" | ||||||
| }, | ||||||
| "500": { | ||||||
| "$ref": "#/components/responses/InternalServerError" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "/v1/auth/sso/saml/callback": { | ||||||
| "post": { | ||||||
| "x-stability-level": "stable", | ||||||
| "x-publish-docs": true, | ||||||
| "summary": "Handles SAML response from IdP", | ||||||
| "description": "Processes the SAML response from the IdP", | ||||||
| "operationId": "callback", | ||||||
| "tags": [ | ||||||
| "Auth" | ||||||
| ], | ||||||
| "requestBody": { | ||||||
| "required": true, | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "type": "object", | ||||||
| "required": [ | ||||||
| "SAMLResponse" | ||||||
| ], | ||||||
| "properties": { | ||||||
| "SAMLResponse": { | ||||||
| "type": "string", | ||||||
| "description": "Base64-encoded SAML response from the IdP." | ||||||
| }, | ||||||
| "TTL": { | ||||||
| "type": "integer", | ||||||
| "x-go-type": "uint32", | ||||||
| "description": "Time-to-live (TTL) of the token in seconds" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "responses": { | ||||||
| "200": { | ||||||
| "$ref": "#/components/responses/SamlCallbackResponse" | ||||||
| }, | ||||||
| "400": { | ||||||
| "$ref": "#/components/responses/BadRequest" | ||||||
| }, | ||||||
| "500": { | ||||||
| "$ref": "#/components/responses/InternalServerError" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "/v1/auth/sso/saml/logout": { | ||||||
| "get": { | ||||||
| "x-stability-level": "stable", | ||||||
| "x-publish-docs": true, | ||||||
| "summary": "Starts SP-initiated SAML logout flow", | ||||||
| "description": "Generates a redirect URL to the IdP for SAML logout.", | ||||||
| "operationId": "logout", | ||||||
| "tags": [ | ||||||
| "Auth" | ||||||
| ], | ||||||
| "security": [ | ||||||
| { | ||||||
| "jwtAuth": [] | ||||||
| } | ||||||
| ], | ||||||
| "responses": { | ||||||
| "200": { | ||||||
| "$ref": "#/components/responses/SamlLogoutResponse" | ||||||
| }, | ||||||
| "400": { | ||||||
| "$ref": "#/components/responses/BadRequest" | ||||||
| }, | ||||||
| "401": { | ||||||
| "$ref": "#/components/responses/Unauthorized" | ||||||
| }, | ||||||
| "500": { | ||||||
| "$ref": "#/components/responses/InternalServerError" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "components": { | ||||||
| "securitySchemes": { | ||||||
| "jwtAuth": { | ||||||
| "type": "apiKey", | ||||||
| "in": "header", | ||||||
| "name": "Authorization" | ||||||
| } | ||||||
| }, | ||||||
| "schemas": { | ||||||
| "Error": { | ||||||
| "required": [ | ||||||
| "error_code", | ||||||
| "description", | ||||||
| "status_code" | ||||||
| ], | ||||||
| "properties": { | ||||||
| "error_code": { | ||||||
| "type": "string", | ||||||
| "description": "Semantic error code" | ||||||
| }, | ||||||
| "description": { | ||||||
| "type": "string", | ||||||
| "description": "Human-readable error description" | ||||||
| }, | ||||||
| "status_code": { | ||||||
| "type": "integer", | ||||||
| "x-go-json-ignore": true | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "responses": { | ||||||
| "SamlLoginResponse": { | ||||||
| "description": "Successful response containing the redirect URL.", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "redirectUrl": { | ||||||
| "type": "string", | ||||||
| "description": "The URL to redirect the user to for SAML authentication." | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "SamlCallbackResponse": { | ||||||
| "description": "Successful response after processing a SAML response.", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "access_token": { | ||||||
| "type": "string", | ||||||
| "description": "JWT access token for the authenticated user" | ||||||
| }, | ||||||
| "uid": { | ||||||
| "type": "string", | ||||||
| "description": "Unique identifier for the authenticated user" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "SamlLogoutResponse": { | ||||||
| "description": "Successful response containing the redirect URL.", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "redirectUrl": { | ||||||
| "type": "string", | ||||||
| "description": "The URL to redirect the user to for SAML logout." | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "BadRequest": { | ||||||
| "description": "Bad request", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "$ref": "#/components/schemas/Error" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "Unauthorized": { | ||||||
| "description": "Unauthorized", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "$ref": "#/components/schemas/Error" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| }, | ||||||
| "InternalServerError": { | ||||||
| "description": "Internal Server Error", | ||||||
| "content": { | ||||||
| "application/json": { | ||||||
| "schema": { | ||||||
| "$ref": "#/components/schemas/Error" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
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.