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

fix schema

parent 050c3ea5
...@@ -120,7 +120,6 @@ ...@@ -120,7 +120,6 @@
<dependency> <dependency>
<groupId>org.springframework.data</groupId> <groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId> <artifactId>spring-data-commons</artifactId>
<version>2.1.10.RELEASE</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
<dependency> <dependency>
...@@ -157,11 +156,12 @@ ...@@ -157,11 +156,12 @@
<goal>generate</goal> <goal>generate</goal>
</goals> </goals>
<configuration> <configuration>
<inputSpec>${basedir}/../openAPI/schema</inputSpec> <inputSpec>${basedir}/../openAPI/API/CloudStorm-1.0.0-openapi.yaml</inputSpec>
<generatorName>java</generatorName> <generatorName>java</generatorName>
<configOptions> <output>${project.build.directory}/generated-sources</output>
<sourceFolder>src/gen/java/main</sourceFolder> <apiPackage>${default.package}.handler</apiPackage>
</configOptions> <modelPackage>nl.uva.sne.drip.model</modelPackage>
<invokerPackage>${default.package}.handler</invokerPackage>
</configuration> </configuration>
</execution> </execution>
</executions> </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" type: "object"
properties: properties:
VMs: VMs:
type: array type: array
items: items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormVM.yml#/CloudsStormVM' $ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormVM.yml#/CloudsStormVM'
CloudsStormTopTopology: CloudsStormTopTopology:
type: "object" type: "object"
properties: properties:
userName: userName:
type: "string" type: "string"
publicKeyPath: publicKeyPath:
type: "string" type: "string"
topologies: topologies:
type: array type: array
items: items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormSubTopology.yml#/CloudsStormSubTopology' $ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormSubTopology.yml#/CloudsStormSubTopology'
CloudsStormVM: CloudsStormVM:
type: "object" type: "object"
properties: properties:
name: 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