-
Notifications
You must be signed in to change notification settings - Fork 7
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
4 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...r-for-spring-test/src/test/java/de/qaware/openapigeneratorforspring/test/app99/App99.java
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,16 @@ | ||
package de.qaware.openapigeneratorforspring.test.app99; | ||
|
||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
@OpenAPIDefinition( | ||
info = @Info(title = "My own title") | ||
) | ||
public class App99 { | ||
public static void main(String[] args) { | ||
SpringApplication.run(App99.class, args); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ng-test/src/test/java/de/qaware/openapigeneratorforspring/test/app99/App99Controller.java
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,20 @@ | ||
package de.qaware.openapigeneratorforspring.test.app99; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.time.Instant; | ||
|
||
@RestController | ||
public class App99Controller { | ||
|
||
@GetMapping("mapping1") | ||
public Instant mapping1() { | ||
return null; | ||
} | ||
|
||
@GetMapping("mapping2") | ||
public Instant mapping2() { | ||
return null; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...r-spring-test/src/test/java/de/qaware/openapigeneratorforspring/test/app99/App99Test.java
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 @@ | ||
package de.qaware.openapigeneratorforspring.test.app99; | ||
|
||
import de.qaware.openapigeneratorforspring.test.AbstractOpenApiGeneratorWebMvcIntTest; | ||
|
||
class App99Test extends AbstractOpenApiGeneratorWebMvcIntTest { | ||
|
||
} |
49 changes: 49 additions & 0 deletions
49
openapi-generator-for-spring-test/src/test/resources/openApiJson/app99.json
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,49 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "My own title", | ||
"version": "unknown" | ||
}, | ||
"paths": { | ||
"/mapping1": { | ||
"get": { | ||
"operationId": "mapping1", | ||
"responses": { | ||
"200": { | ||
"$ref": "#/components/responses/200" | ||
} | ||
} | ||
} | ||
}, | ||
"/mapping2": { | ||
"get": { | ||
"operationId": "mapping2", | ||
"responses": { | ||
"200": { | ||
"$ref": "#/components/responses/200" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"responses": { | ||
"200": { | ||
"description": "Default response", | ||
"content": { | ||
"*/*": { | ||
"schema": { | ||
"$ref": "#/components/schemas/string_date-time" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"schemas": { | ||
"string_date-time": { | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
} | ||
} | ||
} |