Skip to content

Instantly share code, notes, and snippets.

@lluunn
Last active January 17, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lluunn/22fe1f2eaf0859f7aee8c54a1aeb3275 to your computer and use it in GitHub Desktop.
Save lluunn/22fe1f2eaf0859f7aee8c54a1aeb3275 to your computer and use it in GitHub Desktop.
OpenAPI Specification for Cloud Machine Learning Engine Prediction API
openapi: 3.0.0
info:
title: Cloud Machine Learning Engine Prediction API
version: 1.0.0
description: API definition of CMLE online prediction.
paths:
/:
post:
requestBody:
description: prediction input payload
content:
'application/json':
schema:
$ref: '#/components/schemas/InputInstances'
responses:
'200':
description: success
content:
application/json:
schema:
properties:
predictions:
type: object
'429':
description: resource exhausted
content:
application/json:
schema:
properties:
error:
type: string
'500':
description: internal error
content:
application/json:
schema:
properties:
error:
type: string
components:
schemas:
InputInstances:
type: object
required:
- instances
properties:
instances:
type: array
items:
type: object
signature_name:
type: string
description: the signature to use in the model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment