-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from outfoxx/task/test-jaxrs-produces-override
Add test validating JAXRS @produces
- Loading branch information
Showing
2 changed files
with
128 additions
and
0 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
55 changes: 55 additions & 0 deletions
55
generator/src/test/resources/raml/service-gen/svc-override-multiple-media-types.raml
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,55 @@ | ||
#%RAML 1.0 | ||
title: Test API | ||
mediaType: | ||
- application/json | ||
- application/yaml | ||
|
||
types: | ||
|
||
Test: | ||
type: object | ||
properties: | ||
value1: string | ||
value2: integer | ||
|
||
|
||
/tests/1: | ||
get: | ||
displayName: fetchTest1 | ||
responses: | ||
200: | ||
body: | ||
application/yaml: | ||
type: Test | ||
/tests/2s: | ||
get: | ||
displayName: fetchTest2Same | ||
responses: | ||
200: | ||
body: | ||
application/yaml: | ||
type: Test | ||
application/json: | ||
type: Test | ||
/tests/2d: | ||
get: | ||
displayName: fetchTest2Different | ||
responses: | ||
200: | ||
body: | ||
application/yaml: | ||
type: Test | ||
application/cbor: | ||
type: Test | ||
/tests/3: | ||
get: | ||
displayName: fetchTest3 | ||
responses: | ||
200: | ||
body: | ||
application/yaml: | ||
type: Test | ||
application/json: | ||
type: Test | ||
application/cbor: | ||
type: Test |