-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
256 additions
and
43 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
113 changes: 113 additions & 0 deletions
113
...test/resources/testdata/systemtest/Oasp4JTemplateTest/TestDifferentFileSystems/Input.yaml
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,113 @@ | ||
openapi: 3.0.0 | ||
servers: | ||
- url: 'https://localhost:8081/server/services/rest' | ||
description: Just some data | ||
info: | ||
title: Devon Example | ||
description: Example of a API definition | ||
version: 1.0.0 | ||
x-rootpackage: com.capgemini.spoc.openapi | ||
paths: | ||
/shopmanagement/v1/shop/{shopId}: | ||
get: | ||
operationId: findShop | ||
parameters: | ||
- name: shopId | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
format: int64 | ||
minimum: 0 | ||
maximum: 50 | ||
responses: | ||
'200': | ||
description: Any | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Shop' | ||
text/plain: | ||
schema: | ||
type: string | ||
'404': | ||
description: Not found | ||
/salemanagement/v1/sale/{saleId}: | ||
get: | ||
operationId: findSale | ||
parameters: | ||
- name: saleId | ||
in: path | ||
required: true | ||
description: The id of the pet to retrieve | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: Any | ||
/salemanagement/v1/sale/{bla}: | ||
get: | ||
operationId: findSale | ||
parameters: | ||
- name: bla | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
format: int64 | ||
minimum: 10 | ||
maximum: 200 | ||
responses: | ||
'200': | ||
description: Any | ||
/salemanagement/v1/sale/: | ||
post: | ||
responses: | ||
'200': | ||
description: Any | ||
requestBody: | ||
$ref: '#/components/requestBodies/ShopData' | ||
tags: | ||
- searchCriteria | ||
/shopmanagement/v1/shop/new: | ||
post: | ||
responses: | ||
'200': | ||
description: Any | ||
requestBody: | ||
$ref: '#/components/requestBodies/ShopData' | ||
components: | ||
schemas: | ||
Shop: | ||
x-component: shopmanagement | ||
description: Entity definiton of Shop | ||
type: object | ||
properties: | ||
shopExample: | ||
type: string | ||
maxLength: 100 | ||
minLength: 5 | ||
uniqueItems: true | ||
x-manytomany: Shop | ||
x-onetoone: Sale | ||
Sale: | ||
x-component: salemanagement | ||
description: Entity definiton of Shop | ||
type: object | ||
properties: | ||
saleExample: | ||
type: number | ||
format: int64 | ||
maximum: 100 | ||
minimum: 0 | ||
x-onetoone: Shop | ||
x-onetomany: Shop | ||
required: | ||
- saleExample | ||
requestBodies: | ||
ShopData: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Shop' | ||
required: true |
77 changes: 77 additions & 0 deletions
77
...rc/test/resources/testdata/systemtest/Oasp4JTemplateTest/TestDifferentFileSystems/pom.xml
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,77 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>Oasp4JTemplateTest-TestDifferentFileSystems</artifactId> | ||
<version>dev-SNAPSHOT</version> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>maven-plugin</artifactId> | ||
<version>${pluginVersion}</version> | ||
<executions> | ||
<execution> | ||
<id>generate</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>generate</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<configurationFolder>${templatesProject}</configurationFolder> | ||
<inputFiles> | ||
<inputFile>Input.yaml</inputFile> | ||
</inputFiles> | ||
<templates> | ||
<template>ALL</template> | ||
</templates> | ||
</configuration> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>templates-oasp4j</artifactId> | ||
<version>2.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>tempeng-freemarker</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>openapiplugin</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>javaplugin</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>xmlplugin</artifactId> | ||
<version>4.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>htmlplugin</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>tsplugin</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.devonfw.cobigen</groupId> | ||
<artifactId>jsonplugin</artifactId> | ||
<version>2.0.0</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.