updated swagger file

This commit is contained in:
Brad Rydzewski 2015-09-08 14:32:05 -07:00
parent 2fcfd8100a
commit 2223e1d934
2 changed files with 16 additions and 2 deletions

View file

@ -817,6 +817,9 @@ definitions:
"active": true
}
properties:
id:
type: integer
format: int64
login:
type: string
email:
@ -845,6 +848,7 @@ definitions:
Repo:
example: |
{
"id": 1,
"owner":"drone",
"name":"drone-test-go",
"full_name":"drone/drone-test-go",
@ -873,6 +877,9 @@ definitions:
}
}
properties:
id:
type: integer
format: int64
owner:
type: string
name:
@ -921,6 +928,7 @@ definitions:
Build:
example: |
{
"id": 42,
"number": 1,
"status": "success",
"started_at": 5788800,
@ -960,6 +968,9 @@ definitions:
]
}
properties:
id:
type: integer
format: int64
number:
type: integer
status:
@ -1003,6 +1014,9 @@ definitions:
type: string
Job:
properties:
id:
type: integer
format: int64
number:
type: integer
status:

View file

@ -10,8 +10,8 @@ const (
)
type Build struct {
ID int64
RepoID int64 `json:"id" sql:"unique:ux_build_number,index:ix_build_repo_id"`
ID int64 `json:"id"`
RepoID int64 `json:"-" sql:"unique:ux_build_number,index:ix_build_repo_id"`
Number int `json:"number" sql:"unique:ux_build_number"`
Event string `json:"event"`
Status string `json:"status"`