api endpoint changed from /v1 to /v2 in api docs

This commit is contained in:
Marcos 2016-09-26 20:07:17 +02:00
parent e789ad4926
commit a508c36819

View file

@ -14,7 +14,7 @@ host: api.uber.com
schemes: schemes:
- https - https
# will be prefixed to all paths # will be prefixed to all paths
basePath: /api/v1 basePath: /api/v2
produces: produces:
- application/json - application/json
@ -265,7 +265,7 @@ paths:
$ref: '#/definitions/Error' $ref: '#/definitions/Error'
/credentials/{credential_id}/file: /file:
post: post:
summary: Upload and attach a file to an item summary: Upload and attach a file to an item
tags: tags:
@ -273,10 +273,6 @@ paths:
consumes: consumes:
- multipart/form-data - multipart/form-data
parameters: parameters:
- name: credential_id
in: path
required: true
type: integer
- name: file - name: file
in: formData in: formData
description: The uploaded file data description: The uploaded file data
@ -295,16 +291,12 @@ paths:
schema: schema:
$ref: '#/definitions/Error' $ref: '#/definitions/Error'
/credentials/{credential_id}/file/{file_id}: /file/{file_id}:
delete: delete:
tags: tags:
- File - File
summary: Delete a file summary: Delete a file
parameters: parameters:
- name: credential_id
in: path
required: true
type: integer
- name: file_id - name: file_id
in: path in: path
required: true required: true
@ -312,7 +304,18 @@ paths:
responses: responses:
200: 200:
description: OK description: OK
get:
tags:
- File
summary: Get file contents
parameters:
- name: file_id
in: path
required: true
type: integer
responses:
200:
description: OK
definitions: definitions:
Vault: Vault:
@ -403,7 +406,7 @@ definitions:
properties: properties:
otp_secret: otp_secret:
type: string type: string
qr_code: qr_uri:
type: string type: string
@ -416,7 +419,7 @@ definitions:
created: created:
type: string type: string
format: dateTime format: dateTime
item: credential:
$ref: '#/definitions/Credential' $ref: '#/definitions/Credential'
@ -430,12 +433,9 @@ definitions:
filename: filename:
type: string type: string
description: The uploaded file name description: The uploaded file name
type: guid:
type: string type: string
description: Detected file type description: The guid of the file
mimetype:
type: string
description: Mime type of the file
size: size:
type: integer type: integer
description: Size of the file in bytes description: Size of the file in bytes