77 lines
2.1 KiB
YAML
Executable file
77 lines
2.1 KiB
YAML
Executable file
swagger: '2.0'
|
|
info:
|
|
title: crate-minutes-api
|
|
description: 'Meeting Minutes Generator Web-API'
|
|
version: '1.0.0'
|
|
schemes:
|
|
- 'https'
|
|
host: 'crate-minutes-gw-a8slsa47.an.gateway.dev'
|
|
x-google-endpoints:
|
|
- name: 'crate-minutes-gw-a8slsa47.an.gateway.dev'
|
|
allowCors: True
|
|
paths:
|
|
/create-minutes:
|
|
post:
|
|
description: '商談レポート作成'
|
|
operationId: 'create-minutes'
|
|
x-google-backend:
|
|
address: https://asia-northeast1-rational-timing-443808-u0.cloudfunctions.net/create-minutes
|
|
path_translation: CONSTANT_ADDRESS
|
|
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: []
|
|
options:
|
|
summary: 'CORS support'
|
|
operationId: 'create-minutes-options'
|
|
x-google-backend:
|
|
address: https://asia-northeast1-rational-timing-443808-u0.cloudfunctions.net/create-minutes
|
|
path_translation: CONSTANT_ADDRESS
|
|
responses:
|
|
204:
|
|
description: 'CORS preflight'
|
|
headers:
|
|
Access-Control-Allow-Origin:
|
|
type: string
|
|
default: '*'
|
|
Access-Control-Allow-Methods:
|
|
type: string
|
|
default: 'GET, POST, OPTIONS'
|
|
Access-Control-Allow-Headers:
|
|
type: string
|
|
default: 'Content-Type, x-api-key'
|
|
securityDefinitions:
|
|
APIKeyHeader:
|
|
type: apiKey
|
|
name: x-api-key
|
|
in: header
|