This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compile v1exp, leave v1 - openapi3 as reference in openapi 3 spec
- Loading branch information
jih147
committed
Jun 13, 2023
1 parent
dca546a
commit 9c01c0f
Showing
6 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
openapi: '3.0.0' | ||
info: | ||
title: Scoring API - v2 | ||
title: Scoring API - v1.2.0-openapi3 | ||
description: >- | ||
This is a definition of the REST API for scoring from H2O. | ||
This API is intended to be used within DAI and eventually across all H2O scoring systems. | ||
This API combines both v1 and v1Exp in OPENAPI 3.0 spec. | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: License | ||
url: 'http://www.h2o.ai' | ||
version: 1.3.0 | ||
version: 1.2.0-openapi3 | ||
servers: | ||
- url: / | ||
paths: | ||
|
@@ -160,6 +161,40 @@ paths: | |
description: Implementation not supported | ||
content: {} | ||
x-codegen-request-body-name: payload | ||
/model/media-score: | ||
post: | ||
tags: | ||
- scoring | ||
summary: Score model with provided media files | ||
description: Computes score of provided data making use of provided media files. | ||
operationId: getMediaScore | ||
requestBody: | ||
content: | ||
multipart/form-data: | ||
schema: | ||
type: object | ||
properties: | ||
scoreMediaRequest: | ||
$ref: '#/components/schemas/scoreMediaRequest' | ||
files: | ||
type: array | ||
items: | ||
type: string | ||
format: binary | ||
required: | ||
- scoreMediaRequest | ||
- files | ||
responses: | ||
'200': | ||
description: Successful scoring operation | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ScoreResponse' | ||
'501': | ||
description: Implementation not supported | ||
'400': | ||
description: Invalid payload | ||
components: | ||
schemas: | ||
Model: | ||
|
@@ -365,6 +400,18 @@ components: | |
type: array | ||
items: | ||
$ref: '#/components/schemas/Row' | ||
scoreMediaRequest: | ||
allOf: | ||
- $ref: '#/components/schemas/ScoreRequest' | ||
- properties: | ||
mediaFields: | ||
description: > | ||
An array holding the names of all fields which are expected to contain media files. | ||
Contents of these fields will be replaced by corresponding uploaded files where the | ||
expected values in the column must be the file names of the uploaded files. | ||
type: array | ||
items: | ||
type: string | ||
securitySchemes: | ||
api_key: | ||
type: apiKey | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"basePackage":"ai.h2o.mojos.deploy.common.rest.v1openapi3", | ||
"configPackage":"ai.h2o.mojos.deploy.common.rest.v1openapi3.config", | ||
"modelPackage": "ai.h2o.mojos.deploy.common.rest.v1openapi3.model", | ||
"apiPackage" : "ai.h2o.mojos.deploy.common.rest.v1openapi3.api", | ||
"interfaceOnly" : true | ||
} |
This file was deleted.
Oops, something went wrong.