assert response body based on spec examples

This commit is contained in:
domaindrivendev
2016-02-23 00:30:10 -08:00
parent 071239727a
commit 9ad7a49e6d
16 changed files with 218 additions and 59 deletions

View File

@@ -24,8 +24,8 @@
}
],
"responses": {
"200": {
"description": "Ok",
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/Blog"
}
@@ -58,7 +58,10 @@
"200": {
"description": "Ok",
"schema": {
"$ref": "#/definitions/Blog"
"type": "array",
"item": {
"$ref": "#/definitions/Blog"
}
}
}
}