テスト環境デプロイ
This commit is contained in:
parent
bb072cc91c
commit
1259ba76c9
6 changed files with 267 additions and 30 deletions
|
|
@ -7,7 +7,7 @@ PROJECT_ID="datacom-poc"
|
|||
API_NAME="sales-tool-api"
|
||||
|
||||
# プロジェクトを設定
|
||||
gcloud auth application-default set-quota-project dmiru-dev
|
||||
gcloud auth application-default set-quota-project $PROJECT_ID
|
||||
gcloud config set project $PROJECT_ID
|
||||
|
||||
# API Gatewayを作成
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
# 環境変数
|
||||
API_NAME="sales-tool-api"
|
||||
API_CONFIG_NAME="sales-tool-gw-dev-conf-20250619"
|
||||
GATEWAY_NAME="sales-tool-gw-dev"
|
||||
API_CONFIG_NAME="sales-tool-gw-dev-conf-20251209"
|
||||
GATEWAY_NAME="sales-tool-gw-dev-20251209"
|
||||
OPENAPI_SPEC="openapi_dev.yaml"
|
||||
PROJECT_ID="datacom-poc"
|
||||
SERVICE_ACCOUNT="api-gateway-mpos@datacom-poc.iam.gserviceaccount.com"
|
||||
SERVICE_ACCOUNT="mrt-apigateway-sa-devtest@datacom-poc.iam.gserviceaccount.com"
|
||||
LOCATION="asia-northeast1"
|
||||
|
||||
gcloud auth application-default set-quota-project $PROJECT_ID
|
||||
|
|
|
|||
|
|
@ -6,13 +6,191 @@ info:
|
|||
schemes:
|
||||
- 'https'
|
||||
paths:
|
||||
/trigger-minutes-workflow-from-miitel:
|
||||
/miitel:
|
||||
post:
|
||||
description: 'ワークフロー呼び出し処理'
|
||||
operationId: 'trigger-minutes-workflow-from-miitel'
|
||||
description: 'Miitel Webhook Processer'
|
||||
operationId: 'miitel'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/mrt-trigger-minutes-workflow-from-miitel
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes/api/miitel
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
jwt_audience: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes
|
||||
deadline: 600
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
parameters:
|
||||
- in: body
|
||||
name: body
|
||||
description: JSON payload
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
responses:
|
||||
200:
|
||||
description: 'OK'
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
401:
|
||||
description: 'Auth Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
500:
|
||||
description: 'Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
security:
|
||||
- APIKeyHeader: []
|
||||
|
||||
/dailyBatch:
|
||||
post:
|
||||
description: 'get companies and owners'
|
||||
operationId: 'dailyBatch'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes/api/dailyBatch
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
jwt_audience: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes
|
||||
deadline: 600
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
parameters:
|
||||
- in: body
|
||||
name: body
|
||||
description: JSON payload
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
responses:
|
||||
200:
|
||||
description: 'OK'
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
401:
|
||||
description: 'Auth Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
500:
|
||||
description: 'Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
security:
|
||||
- APIKeyHeader: []
|
||||
|
||||
/getLog:
|
||||
post:
|
||||
description: 'get log'
|
||||
operationId: 'getLog'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes/api/getLog
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
jwt_audience: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes
|
||||
deadline: 600
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
parameters:
|
||||
- in: body
|
||||
name: body
|
||||
description: JSON payload
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
responses:
|
||||
200:
|
||||
description: 'OK'
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
401:
|
||||
description: 'Auth Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
500:
|
||||
description: 'Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
security:
|
||||
- APIKeyHeader: []
|
||||
|
||||
/reExecute:
|
||||
post:
|
||||
description: ''
|
||||
operationId: 'reExecute'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes/api/reExecute
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
jwt_audience: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes
|
||||
deadline: 600
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
parameters:
|
||||
- in: body
|
||||
name: body
|
||||
description: JSON payload
|
||||
required: false
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
responses:
|
||||
200:
|
||||
description: 'OK'
|
||||
schema:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
401:
|
||||
description: 'Auth Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
500:
|
||||
description: 'Error'
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: string
|
||||
security:
|
||||
- APIKeyHeader: []
|
||||
|
||||
/test:
|
||||
post:
|
||||
description: 'test'
|
||||
operationId: 'test'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes/api/test
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
jwt_audience: https://asia-northeast1-datacom-poc.cloudfunctions.net/generate_minutes
|
||||
deadline: 600
|
||||
consumes:
|
||||
- application/json
|
||||
produces:
|
||||
|
|
@ -49,10 +227,7 @@ paths:
|
|||
- APIKeyHeader: []
|
||||
options:
|
||||
summary: 'CORS support'
|
||||
operationId: 'trigger-minutes-workflow-from-miitel-options'
|
||||
x-google-backend:
|
||||
address: https://asia-northeast1-datacom-poc.cloudfunctions.net/mrttrigger-minutes-workflow-from-miitel
|
||||
path_translation: CONSTANT_ADDRESS
|
||||
operationId: 'test-options'
|
||||
responses:
|
||||
204:
|
||||
description: 'CORS preflight'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue