From 11ec53b9ddd945426641e67bd083a23b1b31c135 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 19 Aug 2015 10:53:17 -0700 Subject: [PATCH] updated swaggerfile to include feed --- doc/swagger.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/doc/swagger.yml b/doc/swagger.yml index d58442b2..729d5c4c 100644 --- a/doc/swagger.yml +++ b/doc/swagger.yml @@ -192,6 +192,38 @@ paths: Unable to update the Repository record in the database + # + # Repos Param Encryption Enpoint + # TODO: properly add the input output schema + + /repos/{owner}/{name}/encrypt: + post: + parameters: + - name: owner + in: path + type: string + description: owner of the repository + - name: name + in: path + type: string + description: name of the repository + tags: + - Repos + summary: Encrypt + description: Creates encrypted environment variable strings. + security: + - accessToken: [] + responses: + 200: + description: The encrypted parameters. + 400: + description: | + Unable to encrypt the parameters. + 404: + description: | + Unable to find the repository. + + # # Repos Watch/Unwatch Enpoint # @@ -992,6 +1024,16 @@ definitions: environment: type: object Activity: + example: | + { + "owner":"drone", + "name":"drone-test-go", + "full_name":"drone/drone-test-go", + "number": 1, + "status": "success", + "started_at": 5788800, + "finished_at": 5789500 + } properties: owner: type: string