Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos <wolfi@wolfi.es>2016-09-26 21:07:17 +0300
committerMarcos <wolfi@wolfi.es>2016-09-26 21:07:17 +0300
commita508c368198e8b7d5251dfe4680dc6e98b0b5b16 (patch)
treefd05c176ebf9e3a2656b4cc4c98a1a644d20ab1a /swagger.yaml
parente789ad49263a53f6db5cbef0d42f1ca9bcb93d8b (diff)
api endpoint changed from /v1 to /v2 in api docs
Diffstat (limited to 'swagger.yaml')
-rw-r--r--swagger.yaml34
1 files changed, 17 insertions, 17 deletions
diff --git a/swagger.yaml b/swagger.yaml
index e0069e4a..545b889e 100644
--- a/swagger.yaml
+++ b/swagger.yaml
@@ -14,7 +14,7 @@ host: api.uber.com
schemes:
- https
# will be prefixed to all paths
-basePath: /api/v1
+basePath: /api/v2
produces:
- application/json
@@ -265,7 +265,7 @@ paths:
$ref: '#/definitions/Error'
- /credentials/{credential_id}/file:
+ /file:
post:
summary: Upload and attach a file to an item
tags:
@@ -273,10 +273,6 @@ paths:
consumes:
- multipart/form-data
parameters:
- - name: credential_id
- in: path
- required: true
- type: integer
- name: file
in: formData
description: The uploaded file data
@@ -295,24 +291,31 @@ paths:
schema:
$ref: '#/definitions/Error'
- /credentials/{credential_id}/file/{file_id}:
+ /file/{file_id}:
delete:
tags:
- File
summary: Delete a file
parameters:
- - name: credential_id
+ - name: file_id
in: path
required: true
type: integer
+ responses:
+ 200:
+ description: OK
+ get:
+ tags:
+ - File
+ summary: Get file contents
+ parameters:
- name: file_id
in: path
required: true
type: integer
responses:
200:
- description: OK
-
+ description: OK
definitions:
Vault:
@@ -403,7 +406,7 @@ definitions:
properties:
otp_secret:
type: string
- qr_code:
+ qr_uri:
type: string
@@ -416,7 +419,7 @@ definitions:
created:
type: string
format: dateTime
- item:
+ credential:
$ref: '#/definitions/Credential'
@@ -430,12 +433,9 @@ definitions:
filename:
type: string
description: The uploaded file name
- type:
- type: string
- description: Detected file type
- mimetype:
+ guid:
type: string
- description: Mime type of the file
+ description: The guid of the file
size:
type: integer
description: Size of the file in bytes