Add securityDefintions to generated swagger JSON

Also factor out to a common file
This commit is contained in:
Richard van der Hoff 2016-05-03 13:57:16 +01:00
parent cf87120d78
commit 23c4ffbc1b
33 changed files with 46 additions and 155 deletions

View file

@ -12,11 +12,7 @@ consumes:
produces:
- application/json
securityDefinitions:
accessToken:
type: apiKey
description: The user_id or application service access_token
name: access_token
in: query
$ref: definitions/security.yaml
paths:
"/rooms/{roomId}/ban":
post: