swagger: '2.0'
info:
  description: |
    This is the launch service.
  version: 0.0.0
  title: SSLaunch
  contact:
    email: abc@gmail.com
schemes:
  - https
produces:
  - application/json
paths:
  /v0/launch/echo:
    get:
      summary: check the health of api
      operationId: healthCheck
      consumes:
        - application/json
      produces:
        - application/json
      responses:
        200:
          description: OK
      x-google-backend:
        address: https://cloud-run-url
        path_translation: APPEND_PATH_TO_ADDRESS
      security:
        - api_key: []

  /v0/launch:
    get:
      summary: Get the launch config
      operationId: getConfig
      consumes:
        - application/json
      produces:
        - application/json
      responses:
        500:
          description: Internal error
        400:
          description: Invalid input
        200:
          description: OK
      x-google-backend:
        address: https://cloud-run-url
        path_translation: APPEND_PATH_TO_ADDRESS
      security:
        - api_key: []

securityDefinitions:
  api_key:
    type: apiKey
    name: X-API-Key
    in: header
