Skip to content

Commit

Permalink
Revert "Upload endpoint"
Browse files Browse the repository at this point in the history
This reverts commit 0707068.
  • Loading branch information
mikepsinn committed Nov 18, 2019
1 parent e9feaff commit 9420e05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 317 deletions.
192 changes: 1 addition & 191 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1520,44 +1520,6 @@
"summary"
]
},
"GetUploadResponse": {
"properties": {
"data": {
"type": "string"
},
"description": {
"description": "Whatever you uploaded",
"type": "string"
},
"summary": {
"description": "Can be used as title in help info popup",
"type": "string"
},
"image": {
"$ref": "#/definitions/Image"
},
"avatar": {
"description": "Square icon png url",
"type": "string"
},
"ionIcon": {
"description": "Ex: ion-ios-person",
"type": "string"
},
"title": {
"description": "Ex: Top Predictors of Overall Mood",
"type": "string"
},
"html": {
"description": "Embeddable list of study summaries with explanation at the top",
"type": "string"
}
},
"required": [
"description",
"summary"
]
},
"GetSharesResponse": {
"properties": {
"authorizedClients": {
Expand Down Expand Up @@ -2587,58 +2549,6 @@
],
"type": "object"
},
"PostUploadResponse": {
"properties": {
"data": {
"description": "Message",
"type": "string"
},
"message": {
"description": "Message",
"type": "string"
},
"description": {
"description": "Can be used as body of help info popup",
"type": "string"
},
"summary": {
"description": "Can be used as title in help info popup",
"type": "string"
},
"errors": {
"description": "Array of error objects with message property",
"items": {
"$ref": "#/definitions/Error"
},
"type": "array"
},
"status": {
"description": "ex. OK or ERROR",
"type": "string"
},
"success": {
"description": "true or false",
"type": "boolean"
},
"code": {
"description": "Response code such as 200",
"type": "number"
},
"link": {
"description": "A super neat url you might want to share with your users!",
"type": "string"
},
"card": {
"description": "A super neat card with buttons and HTML that you can use in your app!",
"$ref": "#/definitions/Card"
}
},
"required": [
"status",
"success"
],
"type": "object"
},
"ShareInvitationBody": {
"properties": {
"emailAddress": {
Expand Down Expand Up @@ -12400,106 +12310,6 @@
}
]
}
},
"/v2/upload": {
"get": {
"operationId": "getUpload",
"tags": [
"Upload"
],
"summary": "Get whatever you uploaded",
"description": "Get Upload",
"produces": [
"multipart/form-data"
],
"responses": {
"200": {
"description": "Successful operation",
"schema": {
"$ref": "#/definitions/GetUploadResponse"
}
},
"401": {
"description": "Not authenticated"
},
"404": {
"description": "Not found"
},
"500": {
"description": "Internal server error"
}
},
"parameters": [
{
"$ref": "#/parameters/userIdParam"
},
{
"description": "format you want to receive the data in",
"in": "query",
"name": "format",
"required": false,
"type": "string",
"enum": [
"download",
"display"
]
},
{
"description": "Id",
"in": "query",
"name": "id",
"required": false,
"type": "integer"
},
{
"$ref": "#/parameters/clientIdParam"
},
{
"$ref": "#/parameters/platform"
}
],
"security": [
{
"access_token": []
},
{
"quantimodo_oauth2": [
"readmeasurements"
]
}
]
},
"post": {
"summary": "Uploads a file.",
"consumes": [
"multipart/form-data"
],
"parameters": [
{
"in": "formData",
"name": "upfile",
"type": "file",
"description": "The file to upload."
}
],
"responses": {
"201": {
"description": "Successful operation",
"schema": {
"$ref": "#/definitions/PostUploadResponse"
}
},
"401": {
"description": "Not authenticated"
},
"404": {
"description": "Not found"
},
"500": {
"description": "Internal server error"
}
}
}
}
},
"produces": [
Expand Down Expand Up @@ -12598,4 +12408,4 @@
"name": "studies"
}
]
}
}
126 changes: 0 additions & 126 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1121,33 +1121,6 @@ definitions:
required:
- description
- summary
GetUploadResponse:
properties:
data:
type: string
description:
description: 'Whatever you uploaded'
type: string
summary:
description: Can be used as title in help info popup
type: string
image:
$ref: '#/definitions/Image'
avatar:
description: Square icon png url
type: string
ionIcon:
description: 'Ex: ion-ios-person'
type: string
title:
description: 'Ex: Top Predictors of Overall Mood'
type: string
html:
description: Embeddable list of study summaries with explanation at the top
type: string
required:
- description
- summary
GetSharesResponse:
properties:
authorizedClients:
Expand Down Expand Up @@ -1908,44 +1881,6 @@ definitions:
- status
- success
type: object
PostUploadResponse:
properties:
data:
description: Message
type: string
message:
description: Message
type: string
description:
description: Can be used as body of help info popup
type: string
summary:
description: Can be used as title in help info popup
type: string
errors:
description: Array of error objects with message property
items:
$ref: '#/definitions/Error'
type: array
status:
description: ex. OK or ERROR
type: string
success:
description: true or false
type: boolean
code:
description: Response code such as 200
type: number
link:
description: A super neat url you might want to share with your users!
type: string
card:
description: A super neat card with buttons and HTML that you can use in your app!
$ref: '#/definitions/Card'
required:
- status
- success
type: object
ShareInvitationBody:
properties:
emailAddress:
Expand Down Expand Up @@ -8268,67 +8203,6 @@ paths:
- access_token: []
- quantimodo_oauth2:
- readmeasurements
/v2/upload:
get:
operationId: getUpload
tags:
- Upload
summary: Get whatever you uploaded
description: Get Upload
produces:
- multipart/form-data
responses:
'200':
description: Successful operation
schema:
$ref: '#/definitions/GetUploadResponse'
'401':
description: Not authenticated
'404':
description: Not found
'500':
description: Internal server error
parameters:
- $ref: '#/parameters/userIdParam'
- description: format you want to receive the data in
in: query
name: format
required: false
type: string
enum:
- download
- display
- description: Id
in: query
name: id
required: false
type: integer
- $ref: '#/parameters/clientIdParam'
- $ref: '#/parameters/platform'
security:
- access_token: []
- quantimodo_oauth2:
- readmeasurements
post:
summary: Uploads a file.
consumes:
- multipart/form-data
parameters:
- in: formData
name: upfile
type: file
description: The file to upload.
responses:
'201':
description: Successful operation
schema:
$ref: '#/definitions/PostUploadResponse'
'401':
description: Not authenticated
'404':
description: Not found
'500':
description: Internal server error
produces:
- application/json
schemes:
Expand Down

0 comments on commit 9420e05

Please sign in to comment.