up structure for tf
This commit is contained in:
parent
a3c818ef83
commit
e31fdc2c02
874 changed files with 3019 additions and 67372 deletions
241
openapi.template.yaml
Normal file
241
openapi.template.yaml
Normal file
|
@ -0,0 +1,241 @@
|
|||
openapi: "3.0.1"
|
||||
info:
|
||||
title: "Streamlit ${appname}-${environment}-api"
|
||||
version: "1.0.0"
|
||||
servers:
|
||||
- url: "https://${apigateway_vpc_endpoint_id}.execute-api.eu-west-3.amazonaws.com/{basePath}"
|
||||
variables:
|
||||
basePath:
|
||||
default: "${environment}"
|
||||
paths:
|
||||
/:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/query_simple:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/hardware_detect:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/get_keyword_from_email:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/search_engine:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/dica_detect:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/summarize_questions:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/esm_detect:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/esm_content_analyse:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
/app/ai_filter:
|
||||
x-amazon-apigateway-any-method:
|
||||
responses:
|
||||
"200":
|
||||
description: "200 response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Empty"
|
||||
x-amazon-apigateway-integration:
|
||||
credentials: "${api_gateway_execution_role_arn}"
|
||||
httpMethod: "POST"
|
||||
uri: "arn:aws:apigateway:eu-west-3:lambda:path/2015-03-31/functions/${lambda_arn}/invocations"
|
||||
responses:
|
||||
default:
|
||||
statusCode: "200"
|
||||
passthroughBehavior: "when_no_match"
|
||||
timeoutInMillis: 29000
|
||||
contentHandling: "CONVERT_TO_TEXT"
|
||||
type: "aws_proxy"
|
||||
components:
|
||||
schemas:
|
||||
Empty:
|
||||
title: "Empty Schema"
|
||||
type: "object"
|
||||
securitySchemes:
|
||||
sigv4:
|
||||
type: "apiKey"
|
||||
name: "Authorization"
|
||||
in: "header"
|
||||
x-amazon-apigateway-authtype: "awsSigv4"
|
Loading…
Add table
Add a link
Reference in a new issue