swagger docs

This commit is contained in:
Brad Rydzewski 2015-06-23 19:08:18 -07:00
parent 3b63d83d03
commit 796ec75b38

View file

@ -34,6 +34,8 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
tags:
- repository
description: Returns the repository based on name. description: Returns the repository based on name.
security: security:
- accessToken: [] - accessToken: []
@ -54,6 +56,14 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
- name: repo
in: body
description: The updated repository JSON
schema:
$ref: '#/definitions/Repo'
required: true
tags:
- repository
description: Updates the repository. description: Updates the repository.
security: security:
- accessToken: [] - accessToken: []
@ -70,6 +80,8 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
tags:
- repository
description: Deletes the repository. description: Deletes the repository.
security: security:
- accessToken: [] - accessToken: []
@ -82,6 +94,8 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
tags:
- repository
description: Watches the named repository. description: Watches the named repository.
security: security:
- accessToken: [] - accessToken: []
@ -95,6 +109,8 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
tags:
- repository
description: Unwatches the repository. description: Unwatches the repository.
security: security:
- accessToken: [] - accessToken: []
@ -108,6 +124,8 @@ paths:
- name: name - name: name
in: path in: path
type: string type: string
tags:
- build
description: Returns recent builds for the repository based on name. description: Returns recent builds for the repository based on name.
security: security:
- accessToken: [] - accessToken: []
@ -130,6 +148,8 @@ paths:
- name: number - name: number
in: path in: path
type: integer type: integer
tags:
- build
description: Returns the repository build by number. description: Returns the repository build by number.
security: security:
- accessToken: [] - accessToken: []
@ -143,10 +163,8 @@ paths:
description: Returns the currently authenticated user. description: Returns the currently authenticated user.
security: security:
- accessToken: [] - accessToken: []
consumes: tags:
- application/json - user
produces:
- application/json
responses: responses:
"200": "200":
description: The currently authenticated user. description: The currently authenticated user.
@ -165,6 +183,8 @@ paths:
description: Updates the currently authenticated user. description: Updates the currently authenticated user.
produces: produces:
- application/json - application/json
tags:
- user
parameters: parameters:
- name: user - name: user
in: body in: body