From ad9e39fb815d85e5e718c40540fa75471474fa17 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 May 2018 09:57:16 +0200 Subject: Only use account name in routes --- support/doc/api/openapi.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'support/doc/api/openapi.yaml') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 46b73145a..a1e286973 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -16,7 +16,7 @@ basePath: '/api/v1' schemes: - https paths: - '/accounts/{id}': + '/accounts/{name}': get: tags: - Accounts @@ -25,11 +25,11 @@ paths: produces: - application/json parameters: - - name: id + - name: name in: path required: true type: string - description: 'The id of the account' + description: 'The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example)' - name: start in: query required: false @@ -50,7 +50,7 @@ paths: description: successful operation schema: $ref: '#/definitions/Account' - '/accounts/{id}/videos': + '/accounts/{name}/videos': get: tags: - Accounts @@ -59,11 +59,11 @@ paths: produces: - application/json parameters: - - name: id + - name: name in: path required: true type: string - description: 'The id of the account' + description: 'The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example)' responses: '200': description: successful operation @@ -1112,7 +1112,7 @@ paths: description: successful operation schema: $ref: '#/definitions/Video' - /accounts/{accountId}/video-channels: + /accounts/{name}/video-channels: get: tags: - VideoChannel @@ -1121,11 +1121,11 @@ paths: produces: - application/json parameters: - - name: accountId + - name: name in: path required: true type: string - description: 'The account id ' + description: 'The name of the account (chocobozzz or chocobozzz@peertube.cpy.re for example)' responses: '200': description: successful operation -- cgit v1.2.3