Skip to content

Commit

Permalink
Merge pull request #2085 from keboola/jt-fix-typos
Browse files Browse the repository at this point in the history
fix: Rename methods
  • Loading branch information
jachym-tousek-keboola authored Oct 11, 2024
2 parents 49477f2 + 21d00d1 commit e024e57
Show file tree
Hide file tree
Showing 24 changed files with 156 additions and 97 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/pkg/service/appsproxy/api/openapi/openapi.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"swagger":"2.0","info":{"title":"Data application proxy","description":"A service for proxing requests/authorization to data applications using Keboola components.","version":"1.0"},"host":"appsproxy.keboola.com","consumes":["application/json"],"produces":["application/json"],"paths":{"/_proxy/api/":{"get":{"tags":["appsproxy"],"summary":"Redirect to /_proxy","description":"Redirect to /_proxy.","operationId":"ApiRootIndex","responses":{"301":{"description":"Moved Permanently response."}},"schemes":["https"]}},"/_proxy/api/v1":{"get":{"tags":["documentation"],"summary":"List API name and link to documentation.","description":"List API name and link to documentation.","operationId":"ApiVersionIndex","responses":{"200":{"description":"OK response.","schema":{"$ref":"#/definitions/AppsProxyAPIVersionIndexResponseBody","required":["api","documentation"]}}},"schemes":["https"]}},"/_proxy/api/v1/documentation/openapi.json":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 JSON Specification","operationId":"OpenapiJson","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi.yaml":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 YAML Specification","operationId":"OpenapiYaml","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi3.json":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 JSON Specification","operationId":"Openapi3Json","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi3.yaml":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 YAML Specification","operationId":"Openapi3Yaml","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/validate":{"get":{"tags":["appsproxy"],"summary":"Validation of OIDC authorization provider configuration","description":"Validation endpoint of OIDC authorization provider configuration.","operationId":"Validate","responses":{"200":{"description":"OK response.","schema":{"$ref":"#/definitions/AppsProxyValidateResponseBody"}}},"schemes":["https"],"security":[{"storage-api-token":[]}]}}},"definitions":{"AppsProxyAPIVersionIndexResponseBody":{"title":"AppsProxyAPIVersionIndexResponseBody","type":"object","properties":{"api":{"type":"string","description":"Name of the API","example":"appsproxy"},"documentation":{"type":"string","description":"URL of the API documentation.","example":"https://appsproxy.keboola.com/v1/documentation"}},"example":{"api":"appsproxy","documentation":"https://appsproxy.keboola.com/v1/documentation"},"required":["api","documentation"]},"AppsProxyValidateResponseBody":{"title":"AppsProxyValidateResponseBody","type":"object","properties":{"configuration":{"type":"array","items":{"$ref":"#/definitions/ConfigurationResponseBody"},"description":"All authorization providers.","example":[{"statusCode":404,"error":"validations incorrect","message":"unable to validate due to missing entry","id":"test","name":"My Template"}]}},"example":{"configuration":[{"statusCode":404,"error":"validations incorrect","message":"unable to validate due to missing entry","id":"test","name":"My Template"}]}},"ConfigurationResponseBody":{"title":"ConfigurationResponseBody","type":"object","properties":{"clientID":{"type":"string","description":"Client ID of provider.","example":"github.oidc"},"clientSecret":{"type":"string","description":"Client secret provided by OIDC provider.","example":"thisissupersecret"},"id":{"type":"string","description":"Unique ID of provider.","example":"oidc#1"}},"description":"The configuration that is part of the auth providers section.","example":{"clientID":"github.oidc","clientSecret":"thisissupersecret","id":"oidc#1"},"required":["id","clientID","clientSecret"]}},"securityDefinitions":{"storage-api-token":{"type":"apiKey","description":"Storage Api Token Authentication.","name":"X-StorageApi-Token","in":"header"}}}
{"swagger":"2.0","info":{"title":"Data application proxy","description":"A service for proxing requests/authorization to data applications using Keboola components.","version":"1.0"},"host":"appsproxy.keboola.com","consumes":["application/json"],"produces":["application/json"],"paths":{"/_proxy/api/":{"get":{"tags":["appsproxy"],"summary":"Redirect to /_proxy","description":"Redirect to /_proxy.","operationId":"ApiRootIndex","responses":{"301":{"description":"Moved Permanently response."}},"schemes":["https"]}},"/_proxy/api/v1":{"get":{"tags":["documentation"],"summary":"List API name and link to documentation.","description":"List API name and link to documentation.","operationId":"ApiVersionIndex","responses":{"200":{"description":"OK response.","schema":{"$ref":"#/definitions/ServiceDetail","required":["api","documentation"]}}},"schemes":["https"]}},"/_proxy/api/v1/documentation/openapi.json":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 JSON Specification","operationId":"OpenapiJson","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi.yaml":{"get":{"tags":["documentation"],"summary":"Swagger 2.0 YAML Specification","operationId":"OpenapiYaml","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi3.json":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 JSON Specification","operationId":"Openapi3Json","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/documentation/openapi3.yaml":{"get":{"tags":["documentation"],"summary":"OpenAPI 3.0 YAML Specification","operationId":"Openapi3Yaml","responses":{"200":{"description":"File downloaded","schema":{"type":"file"}}},"schemes":["http","https"]}},"/_proxy/api/v1/validate":{"get":{"tags":["appsproxy"],"summary":"Validation of OIDC authorization provider configuration","description":"Validation endpoint of OIDC authorization provider configuration.","operationId":"Validate","responses":{"200":{"description":"OK response.","schema":{"$ref":"#/definitions/Validations"}}},"schemes":["https"],"security":[{"storage-api-token":[]}]}}},"definitions":{"Configuration":{"title":"Configuration","type":"object","properties":{"clientID":{"type":"string","description":"Client ID of provider.","example":"github.oidc"},"clientSecret":{"type":"string","description":"Client secret provided by OIDC provider.","example":"thisissupersecret"},"id":{"type":"string","description":"Unique ID of provider.","example":"oidc#1"}},"description":"The configuration that is part of the auth providers section.","example":{"clientID":"github.oidc","clientSecret":"thisissupersecret","id":"oidc#1"},"required":["id","clientID","clientSecret"]},"ServiceDetail":{"title":"ServiceDetail","type":"object","properties":{"api":{"type":"string","description":"Name of the API","example":"appsproxy"},"documentation":{"type":"string","description":"URL of the API documentation.","example":"https://appsproxy.keboola.com/v1/documentation"}},"example":{"api":"appsproxy","documentation":"https://appsproxy.keboola.com/v1/documentation"},"required":["api","documentation"]},"Validations":{"title":"Validations","type":"object","properties":{"configuration":{"type":"array","items":{"$ref":"#/definitions/Configuration"},"description":"All authorization providers.","example":[{"statusCode":404,"error":"validations incorrect","message":"unable to validate due to missing entry","id":"test","name":"My Template"}]}},"example":{"configuration":[{"statusCode":404,"error":"validations incorrect","message":"unable to validate due to missing entry","id":"test","name":"My Template"}]}}},"securityDefinitions":{"storage-api-token":{"type":"apiKey","description":"Storage Api Token Authentication.","name":"X-StorageApi-Token","in":"header"}}}
64 changes: 32 additions & 32 deletions internal/pkg/service/appsproxy/api/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ paths:
"200":
description: OK response.
schema:
$ref: '#/definitions/AppsProxyAPIVersionIndexResponseBody'
$ref: '#/definitions/ServiceDetail'
required:
- api
- documentation
Expand Down Expand Up @@ -105,14 +105,39 @@ paths:
"200":
description: OK response.
schema:
$ref: '#/definitions/AppsProxyValidateResponseBody'
$ref: '#/definitions/Validations'
schemes:
- https
security:
- storage-api-token: []
definitions:
AppsProxyAPIVersionIndexResponseBody:
title: AppsProxyAPIVersionIndexResponseBody
Configuration:
title: Configuration
type: object
properties:
clientID:
type: string
description: Client ID of provider.
example: github.oidc
clientSecret:
type: string
description: Client secret provided by OIDC provider.
example: thisissupersecret
id:
type: string
description: Unique ID of provider.
example: oidc#1
description: The configuration that is part of the auth providers section.
example:
clientID: github.oidc
clientSecret: thisissupersecret
id: oidc#1
required:
- id
- clientID
- clientSecret
ServiceDetail:
title: ServiceDetail
type: object
properties:
api:
Expand All @@ -129,14 +154,14 @@ definitions:
required:
- api
- documentation
AppsProxyValidateResponseBody:
title: AppsProxyValidateResponseBody
Validations:
title: Validations
type: object
properties:
configuration:
type: array
items:
$ref: '#/definitions/ConfigurationResponseBody'
$ref: '#/definitions/Configuration'
description: All authorization providers.
example:
- exampleerrordata:
Expand All @@ -153,31 +178,6 @@ definitions:
message: unable to validate due to missing entry
id: test
name: My Template
ConfigurationResponseBody:
title: ConfigurationResponseBody
type: object
properties:
clientID:
type: string
description: Client ID of provider.
example: github.oidc
clientSecret:
type: string
description: Client secret provided by OIDC provider.
example: thisissupersecret
id:
type: string
description: Unique ID of provider.
example: oidc#1
description: The configuration that is part of the auth providers section.
example:
clientID: github.oidc
clientSecret: thisissupersecret
id: oidc#1
required:
- id
- clientID
- clientSecret
securityDefinitions:
storage-api-token:
type: apiKey
Expand Down
Loading

0 comments on commit e024e57

Please sign in to comment.