Only use 200 follows what others do. Less switching. Remove defense

This commit is contained in:
James Jeffrey
2017-07-05 12:30:18 -07:00
parent c66a0d0cc4
commit 4845ddb1d4
3 changed files with 26 additions and 47 deletions

View File

@@ -177,7 +177,7 @@ paths:
schema:
$ref: '#/definitions/RouteWrapper'
responses:
201:
200:
description: Route created
schema:
$ref: '#/definitions/RouteWrapper'
@@ -244,11 +244,7 @@ paths:
$ref: '#/definitions/RouteWrapper'
responses:
200:
description: Route updated
schema:
$ref: '#/definitions/RouteWrapper'
201:
description: Route created
description: Route created or updated
schema:
$ref: '#/definitions/RouteWrapper'
400: