mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
added feed to swagger
This commit is contained in:
parent
6ed5ae4827
commit
3f443f99a4
1 changed files with 82 additions and 1 deletions
|
@ -744,7 +744,10 @@ definitions:
|
|||
type: string
|
||||
link_url:
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/definitions/Job"
|
||||
|
||||
Job:
|
||||
example: |
|
||||
|
@ -786,3 +789,81 @@ definitions:
|
|||
format: int64
|
||||
environment:
|
||||
type: object
|
||||
|
||||
Feed:
|
||||
example: |
|
||||
{
|
||||
"owner": "octocat",
|
||||
"name": "hello-world",
|
||||
"full_name": "octocat/hello-world",
|
||||
"number": 1,
|
||||
"event": "push",
|
||||
"status": "success",
|
||||
"created_at": 1443677151,
|
||||
"enqueued_at": 1443677151,
|
||||
"started_at": 1443677151,
|
||||
"finished_at": 1443677255,
|
||||
"commit": "2deb7e0d0cbac357eeb110c8a2f2f32ce037e0d5",
|
||||
"branch": "master",
|
||||
"ref": "refs/heads/master",
|
||||
"remote": "https://github.com/octocat/hello-world.git",
|
||||
"message": "New line at end of file. --Signed off by Spaceghost",
|
||||
"timestamp": 1443677255,
|
||||
"author": "Spaceghost",
|
||||
"author_avatar": "https://avatars0.githubusercontent.com/u/251370?v=3",
|
||||
"author_email": "octocat@github.com",
|
||||
"link_url": "https://github.com/octocat/hello-world/commit/762941318ee16e59dabbacb1b4049eec22f0d303",
|
||||
}
|
||||
properties:
|
||||
owner:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
full_name:
|
||||
type: string
|
||||
number:
|
||||
type: integer
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- success
|
||||
- failure
|
||||
- pending
|
||||
- started
|
||||
- error
|
||||
- killed
|
||||
created_at:
|
||||
type: integer
|
||||
format: int64
|
||||
enqueued_at:
|
||||
type: integer
|
||||
format: int64
|
||||
started_at:
|
||||
type: integer
|
||||
format: int64
|
||||
finished_at:
|
||||
type: integer
|
||||
format: int64
|
||||
commit:
|
||||
type: string
|
||||
branch:
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
timestamp:
|
||||
type: integer
|
||||
format: int64
|
||||
ref:
|
||||
type: string
|
||||
refspec:
|
||||
type: string
|
||||
remote:
|
||||
type: string
|
||||
author:
|
||||
type: string
|
||||
author_avatar:
|
||||
type: string
|
||||
author_email:
|
||||
type: string
|
||||
link_url:
|
||||
type: string
|
||||
|
|
Loading…
Reference in a new issue