Skip to content

Commit

Permalink
Add X-API-TOKEN support
Browse files Browse the repository at this point in the history
  • Loading branch information
fbjorn committed Jul 19, 2024
1 parent 52aa4ea commit 2f4ed40
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 1 deletion.
1 change: 1 addition & 0 deletions definition_tooling/converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def request(
x_authorization_provider: Optional[str] = Header(
None, description="The bare domain of the system that provided the token."
),
x_api_token: Optional[str] = Header(None, description="API token"),
):
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,24 @@
"description": "The bare domain of the system that provided the token.",
"title": "X-Authorization-Provider"
}
},
{
"description": "API token",
"in": "header",
"name": "x-api-token",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
}
}
],
"requestBody": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,24 @@
"description": "The bare domain of the system that provided the token.",
"title": "X-Authorization-Provider"
}
},
{
"description": "API token",
"in": "header",
"name": "x-api-token",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
}
}
],
"requestBody": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,24 @@
"description": "The bare domain of the system that provided the token.",
"title": "X-Authorization-Provider"
}
},
{
"description": "API token",
"in": "header",
"name": "x-api-token",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
}
}
],
"requestBody": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,24 @@
"description": "The bare domain of the system that provided the token.",
"title": "X-Authorization-Provider"
}
},
{
"description": "API token",
"in": "header",
"name": "x-api-token",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
}
}
],
"requestBody": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ioxio-data-product-definition-tooling"
version = "0.7.0"
version = "0.8.0"
description = "IOXIO Data Product Definition Tooling"
authors = ["IOXIO Ltd"]
license = "BSD-3-Clause"
Expand Down

0 comments on commit 2f4ed40

Please sign in to comment.