blob: 67a941b0d0ab07124e30667e4559d0b15928ea00 [file] [log] [blame]
# Copyright 2018 Google Inc. All Rights Reserved.
# An API configuration.
#
# https://cloud.google.com/endpoints/docs/openapi/configure-endpoints
swagger: "2.0"
info:
title: Goma Service on $CLUSTER
description: Goma Service on $CLUSTER in $PROJECT_ID project.
version: "1.0.0"
# TODO(ukai): use goma.chromium.org?
host: $CLUSTER.endpoints.$PROJECT_ID.cloud.goog
x-google-endpoints:
- name: $CLUSTER.endpoints.$PROJECT_ID.cloud.goog
target: "$ADDR"
basePath: "/"
schemes:
- "https"
paths:
"/cxx-compiler-service/ping":
get:
description: ping the Goma service (GET).
operationId: pingGet
responses:
200:
description: success
post:
description: ping the Goma service (POST).
operationId: pingPost
responses:
200:
description: success
"/cxx-compiler-service/e":
post:
description: execute command
operationId: exec
responses:
200:
description: success
"/cxx-compiler-service/s":
post:
description: store file
operationId: storeFile
responses:
200:
description: success
"/cxx-compiler-service/l":
post:
description: lookup file
operationId: lookupFile
responses:
200:
description: success
"/cxx-compiler-service/sl":
post:
description: save execlog
operationId: saveLog
responses:
200:
description: success