-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify if combination of (method) path and operation exists
- Loading branch information
Roy Willemse
committed
Mar 16, 2016
1 parent
8c74143
commit a979dd8
Showing
8 changed files
with
130 additions
and
39 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
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
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,59 @@ | ||
swagger: '2.0' | ||
info: | ||
version: '2' | ||
title: Test | ||
description: Test. | ||
basePath: '/v2' | ||
schemes: | ||
- https | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
paths: | ||
|
||
/test/{id}: | ||
post: | ||
description: Test | ||
tags: | ||
- mytag | ||
parameters: | ||
- in: body | ||
name: body | ||
description: Something to add | ||
required: false | ||
schema: | ||
$ref: "#/definitions/sm" | ||
responses: | ||
'201': | ||
description: Creates something | ||
schema: | ||
$ref: '#/definitions/sm' | ||
default: | ||
description: unexpected error | ||
schema: | ||
$ref: '#/definitions/errorModel' | ||
x-javaClass: com.kenshoo.swagger.validator.SimpleResource | ||
|
||
|
||
definitions: | ||
sm: | ||
properties: | ||
a: | ||
type: string | ||
b: | ||
type: string | ||
c: | ||
type: string | ||
x-javaClass: com.kenshoo.swagger.validator.SimpleModel | ||
|
||
errorModel: | ||
required: | ||
- errorCode | ||
- errorMessage | ||
properties: | ||
errorCode: | ||
type: string | ||
errorMessage: | ||
type: string | ||
x-javaClass: com.kenshoo.platform.rest.ErrorInfo |
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