diff --git a/docs/swagger.yml b/docs/swagger.yml index b1c9f0e51..df70b7faa 100644 --- a/docs/swagger.yml +++ b/docs/swagger.yml @@ -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