Commit 5d3ca132 authored by Spiros Koulouzis's avatar Spiros Koulouzis

fix schema

parent 050c3ea5
......@@ -120,7 +120,6 @@
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>2.1.10.RELEASE</version>
<type>jar</type>
</dependency>
<dependency>
......@@ -157,11 +156,12 @@
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${basedir}/../openAPI/schema</inputSpec>
<inputSpec>${basedir}/../openAPI/API/CloudStorm-1.0.0-openapi.yaml</inputSpec>
<generatorName>java</generatorName>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
</configOptions>
<output>${project.build.directory}/generated-sources</output>
<apiPackage>${default.package}.handler</apiPackage>
<modelPackage>nl.uva.sne.drip.model</modelPackage>
<invokerPackage>${default.package}.handler</invokerPackage>
</configuration>
</execution>
</executions>
......
openapi: 3.0.0
info:
title: Simple Inventory API
description: This is a simple API
contact:
email: you@your-company.com
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.0
servers:
- url: https://virtserver.swaggerhub.com/skoulouzis/CloudStorm/1.0.0
description: SwaggerHub API Auto Mocking
tags:
- name: admins
description: Secured Admin-only calls
- name: developers
description: Operations available to regular developers
paths:
/topology:
get:
summary: return topology
description: return topology
operationId: getTopology
parameters:
- name: searchString
in: query
description: pass an optional search string for looking up inventory
required: false
style: form
explode: true
schema:
maximum: 50
type: string
responses:
"200":
description: search results matching criteria
content:
application/json:
schema:
$ref: '#/components/schemas/CloudsStormTopTopology'
"400":
description: bad input parameter
components:
schemas:
CloudsStormTopTopology:
$ref: https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormTopTopology.yml#/CloudsStormTopTopology
CloudsStormSubTopology:
CloudsStormSubTopology:
type: "object"
properties:
VMs:
type: array
items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormVM.yml#/CloudsStormVM'
VMs:
type: array
items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormVM.yml#/CloudsStormVM'
CloudsStormTopTopology:
CloudsStormTopTopology:
type: "object"
properties:
userName:
type: "string"
publicKeyPath:
type: "string"
topologies:
type: array
items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormSubTopology.yml#/CloudsStormSubTopology'
userName:
type: "string"
publicKeyPath:
type: "string"
topologies:
type: array
items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormSubTopology.yml#/CloudsStormSubTopology'
CloudsStormVM:
CloudsStormVM:
type: "object"
properties:
name:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment