Created
November 15, 2019 10:24
-
-
Save Rictus/556ebbaf6763d2ee6daeaa0e1ee68abc to your computer and use it in GitHub Desktop.
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
swagger: "2.0" | |
info: | |
description: "" | |
version: "1.0.0" | |
title: "Foo API" | |
host: "localhost:8080" | |
basePath: "/v0" | |
paths: | |
/train: | |
post: | |
summary: "Train model" | |
operationId: "train_model" | |
parameters: | |
- in: "body" | |
name: "training_config" | |
description: "Workflow configuration" | |
required: true | |
schema: | |
$ref: "#/definitions/TrainingConfig" | |
responses: | |
200: | |
description: "Training queued" | |
x-swagger-router-controller: "swagger_server.controllers.default_controller" | |
definitions: | |
ColumnsList: | |
type: "array" | |
items: | |
type: "string" | |
uniqueItems: true | |
Config: | |
type: "object" | |
required: | |
- "data_file" | |
- "workflow_name" | |
properties: | |
data_file: | |
type: "string" | |
TrainingConfig: | |
allOf: | |
- $ref: '#/definitions/Config' | |
- type: "object" | |
required: | |
- "main_columns_A" | |
properties: | |
main_columns_A: | |
$ref: '#/definitions/ColumnsList' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment