From b86413bb978e268303473ee898d6a468daa99d96 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 19 Aug 2015 10:45:01 -0700 Subject: [PATCH] added feed to swagger file --- doc/swagger.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/doc/swagger.yml b/doc/swagger.yml index 4d443ebee..d58442b2e 100644 --- a/doc/swagger.yml +++ b/doc/swagger.yml @@ -556,6 +556,26 @@ paths: description: | 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 @@ -971,3 +991,28 @@ definitions: format: int64 environment: 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