mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-25 01:40:30 +00:00
added feed to swagger file
This commit is contained in:
parent
06ef899c26
commit
b86413bb97
1 changed files with 45 additions and 0 deletions
|
@ -556,6 +556,26 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Unable to retrieve Repository list
|
Unable to retrieve Repository list
|
||||||
|
|
||||||
|
#
|
||||||
|
# User Feed
|
||||||
|
#
|
||||||
|
|
||||||
|
/user/feed:
|
||||||
|
get:
|
||||||
|
summary: Get user activity feed
|
||||||
|
description: |
|
||||||
|
Retrieve the currently authenticated User's activity feed.
|
||||||
|
tags:
|
||||||
|
- User
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/definitions/Activity"
|
||||||
|
400:
|
||||||
|
description: |
|
||||||
|
Unable to retrieve Activity list
|
||||||
|
|
||||||
#
|
#
|
||||||
# User Tokens
|
# User Tokens
|
||||||
|
@ -971,3 +991,28 @@ definitions:
|
||||||
format: int64
|
format: int64
|
||||||
environment:
|
environment:
|
||||||
type: object
|
type: object
|
||||||
|
Activity:
|
||||||
|
properties:
|
||||||
|
owner:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
full_name:
|
||||||
|
type: string
|
||||||
|
number:
|
||||||
|
type: integer
|
||||||
|
status:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
- pending
|
||||||
|
- started
|
||||||
|
- error
|
||||||
|
- killed
|
||||||
|
started_at:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
finished_at:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
|
Loading…
Reference in a new issue