All URIs are relative to http://superset.data-us-east4.clusters.production.universe.engineer/
Method | HTTP request | Description |
---|---|---|
api_v1_security_csrf_token_get | GET /api/v1/security/csrf_token/ | |
api_v1_security_guest_token_post | POST /api/v1/security/guest_token/ | |
api_v1_security_login_post | POST /api/v1/security/login | |
api_v1_security_refresh_post | POST /api/v1/security/refresh |
InlineResponse20047 api_v1_security_csrf_token_get
Fetch the CSRF token
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end
api_instance = SwaggerClient::SecurityApi.new
begin
result = api_instance.api_v1_security_csrf_token_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling SecurityApi->api_v1_security_csrf_token_get: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
InlineResponse20048 api_v1_security_guest_token_post(body)
Fetches a guest token
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end
api_instance = SwaggerClient::SecurityApi.new
body = SwaggerClient::GuestTokenCreate.new # GuestTokenCreate | Parameters for the guest token
begin
result = api_instance.api_v1_security_guest_token_post(body)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling SecurityApi->api_v1_security_guest_token_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | GuestTokenCreate | Parameters for the guest token |
- Content-Type: application/json
- Accept: application/json
InlineResponse20049 api_v1_security_login_post(body)
Authenticate and get a JWT access and refresh token
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::SecurityApi.new
body = SwaggerClient::SecurityLoginBody.new # SecurityLoginBody |
begin
result = api_instance.api_v1_security_login_post(body)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling SecurityApi->api_v1_security_login_post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | SecurityLoginBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
InlineResponse20050 api_v1_security_refresh_post
Use the refresh token to get a new JWT access token
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end
api_instance = SwaggerClient::SecurityApi.new
begin
result = api_instance.api_v1_security_refresh_post
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling SecurityApi->api_v1_security_refresh_post: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json