mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-07 01:48:50 +00:00
updated swagger file
This commit is contained in:
parent
2fcfd8100a
commit
2223e1d934
2 changed files with 16 additions and 2 deletions
|
@ -817,6 +817,9 @@ definitions:
|
||||||
"active": true
|
"active": true
|
||||||
}
|
}
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
login:
|
login:
|
||||||
type: string
|
type: string
|
||||||
email:
|
email:
|
||||||
|
@ -845,6 +848,7 @@ definitions:
|
||||||
Repo:
|
Repo:
|
||||||
example: |
|
example: |
|
||||||
{
|
{
|
||||||
|
"id": 1,
|
||||||
"owner":"drone",
|
"owner":"drone",
|
||||||
"name":"drone-test-go",
|
"name":"drone-test-go",
|
||||||
"full_name":"drone/drone-test-go",
|
"full_name":"drone/drone-test-go",
|
||||||
|
@ -873,6 +877,9 @@ definitions:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
owner:
|
owner:
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
|
@ -921,6 +928,7 @@ definitions:
|
||||||
Build:
|
Build:
|
||||||
example: |
|
example: |
|
||||||
{
|
{
|
||||||
|
"id": 42,
|
||||||
"number": 1,
|
"number": 1,
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"started_at": 5788800,
|
"started_at": 5788800,
|
||||||
|
@ -960,6 +968,9 @@ definitions:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
number:
|
number:
|
||||||
type: integer
|
type: integer
|
||||||
status:
|
status:
|
||||||
|
@ -1003,6 +1014,9 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
Job:
|
Job:
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
number:
|
number:
|
||||||
type: integer
|
type: integer
|
||||||
status:
|
status:
|
||||||
|
|
|
@ -10,8 +10,8 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Build struct {
|
type Build struct {
|
||||||
ID int64
|
ID int64 `json:"id"`
|
||||||
RepoID int64 `json:"id" sql:"unique:ux_build_number,index:ix_build_repo_id"`
|
RepoID int64 `json:"-" sql:"unique:ux_build_number,index:ix_build_repo_id"`
|
||||||
Number int `json:"number" sql:"unique:ux_build_number"`
|
Number int `json:"number" sql:"unique:ux_build_number"`
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
|
Loading…
Reference in a new issue