Skip to content

Latest commit

 

History

History
408 lines (267 loc) · 8.92 KB

CSSTemplatesApi.md

File metadata and controls

408 lines (267 loc) · 8.92 KB

SwaggerClient::CSSTemplatesApi

All URIs are relative to http://superset.data-us-east4.clusters.production.universe.engineer/

Method HTTP request Description
api_v1_css_template_delete DELETE /api/v1/css_template/
api_v1_css_template_get GET /api/v1/css_template/
api_v1_css_template_info_get GET /api/v1/css_template/_info
api_v1_css_template_pk_delete DELETE /api/v1/css_template/{pk}
api_v1_css_template_pk_get GET /api/v1/css_template/{pk}
api_v1_css_template_pk_put PUT /api/v1/css_template/{pk}
api_v1_css_template_post POST /api/v1/css_template/
api_v1_css_template_related_column_name_get GET /api/v1/css_template/related/{column_name}

api_v1_css_template_delete

InlineResponse400 api_v1_css_template_delete(opts)

Deletes multiple css templates in a bulk operation.

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
opts = { 
  q: SwaggerClient::GetDeleteIdsSchema.new # GetDeleteIdsSchema | 
}

begin
  result = api_instance.api_v1_css_template_delete(opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_delete: #{e}"
end

Parameters

Name Type Description Notes
q GetDeleteIdsSchema [optional]

Return type

InlineResponse400

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

api_v1_css_template_get

InlineResponse20011 api_v1_css_template_get(opts)

Get a list of CSS templates, use Rison or JSON query parameters for filtering, sorting, pagination and for selecting specific columns and metadata.

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
opts = { 
  q: SwaggerClient::GetListSchema.new # GetListSchema | 
}

begin
  result = api_instance.api_v1_css_template_get(opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_get: #{e}"
end

Parameters

Name Type Description Notes
q GetListSchema [optional]

Return type

InlineResponse20011

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

api_v1_css_template_info_get

InlineResponse2001 api_v1_css_template_info_get(opts)

Get metadata information about this API resource

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
opts = { 
  q: SwaggerClient::GetInfoSchema.new # GetInfoSchema | 
}

begin
  result = api_instance.api_v1_css_template_info_get(opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_info_get: #{e}"
end

Parameters

Name Type Description Notes
q GetInfoSchema [optional]

Return type

InlineResponse2001

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

api_v1_css_template_pk_delete

InlineResponse400 api_v1_css_template_pk_delete(pk)

Delete CSS template

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
pk = 56 # Integer | 


begin
  result = api_instance.api_v1_css_template_pk_delete(pk)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_pk_delete: #{e}"
end

Parameters

Name Type Description Notes
pk Integer

Return type

InlineResponse400

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

api_v1_css_template_pk_get

InlineResponse20012 api_v1_css_template_pk_get(pk, opts)

Get a CSS template

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
pk = 56 # Integer | 
opts = { 
  q: SwaggerClient::GetItemSchema.new # GetItemSchema | 
}

begin
  result = api_instance.api_v1_css_template_pk_get(pk, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_pk_get: #{e}"
end

Parameters

Name Type Description Notes
pk Integer
q GetItemSchema [optional]

Return type

InlineResponse20012

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

api_v1_css_template_pk_put

InlineResponse20013 api_v1_css_template_pk_put(bodypk)

Update a CSS template

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
body = SwaggerClient::CssTemplateRestApiPut.new # CssTemplateRestApiPut | Model schema
pk = 56 # Integer | 


begin
  result = api_instance.api_v1_css_template_pk_put(bodypk)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_pk_put: #{e}"
end

Parameters

Name Type Description Notes
body CssTemplateRestApiPut Model schema
pk Integer

Return type

InlineResponse20013

Authorization

jwt

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

api_v1_css_template_post

InlineResponse2013 api_v1_css_template_post(body)

Create a CSS template

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
body = SwaggerClient::CssTemplateRestApiPost.new # CssTemplateRestApiPost | Model schema


begin
  result = api_instance.api_v1_css_template_post(body)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_post: #{e}"
end

Parameters

Name Type Description Notes
body CssTemplateRestApiPost Model schema

Return type

InlineResponse2013

Authorization

jwt

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

api_v1_css_template_related_column_name_get

RelatedResponseSchema api_v1_css_template_related_column_name_get(column_name, opts)

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
end

api_instance = SwaggerClient::CSSTemplatesApi.new
column_name = 'column_name_example' # String | 
opts = { 
  q: SwaggerClient::GetRelatedSchema.new # GetRelatedSchema | 
}

begin
  result = api_instance.api_v1_css_template_related_column_name_get(column_name, opts)
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling CSSTemplatesApi->api_v1_css_template_related_column_name_get: #{e}"
end

Parameters

Name Type Description Notes
column_name String
q GetRelatedSchema [optional]

Return type

RelatedResponseSchema

Authorization

jwt

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json