Last active
January 17, 2018 20:15
-
-
Save lluunn/22fe1f2eaf0859f7aee8c54a1aeb3275 to your computer and use it in GitHub Desktop.
OpenAPI Specification for Cloud Machine Learning Engine Prediction API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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