Created
November 24, 2022 18:45
-
-
Save daveRanjan/d20a420f443ccb61ee6f5b5af9f2c907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: CAM Final | |
version: 1.0.0 | |
servers: | |
- url: http://{{cam_server_url}} | |
paths: | |
/api/v1/folders/{folderId}/list: | |
get: | |
tags: | |
- default | |
summary: Get list of subfolders | |
parameters: | |
- name: folderId | |
in: path | |
schema: | |
type: string | |
required: true | |
responses: | |
'200': | |
description: OK | |
headers: | |
Content-Type: | |
schema: | |
type: string | |
example: application/json | |
content: | |
application/json: | |
schema: | |
type: object | |
example: | |
data: | |
- id: 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI | |
name: Solataire | |
parents: | |
- 1npaJ9vQCaJQgS_tcc0by5j7UgGtfE0i0 | |
shared: true | |
webViewLink: >- | |
https://drive.google.com/file/d/17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI/view?usp=drivesdk | |
- id: 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdj2 | |
name: Spades | |
parents: | |
- 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI | |
shared: true | |
webViewLink: >- | |
https://drive.google.com/file/d/17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI/view?usp=drivesdk | |
/api/v1/folders/{folderId}/create: | |
post: | |
tags: | |
- default | |
summary: Create a folder | |
requestBody: | |
content: | |
application/json: | |
schema: | |
type: object | |
example: | |
name: Spades New | |
tags: '#NewYearCampaign' | |
parameters: | |
- name: folderId | |
in: path | |
schema: | |
type: string | |
required: true | |
responses: | |
'200': | |
description: OK | |
headers: | |
Content-Type: | |
schema: | |
type: string | |
example: application/json | |
content: | |
application/json: | |
schema: | |
type: object | |
example: | |
data: | |
- id: 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI | |
name: Solataire | |
parents: | |
- 1npaJ9vQCaJQgS_tcc0by5j7UgGtfE0i0 | |
shared: true | |
webViewLink: >- | |
https://drive.google.com/file/d/17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI/view?usp=drivesdk | |
- id: 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdj2 | |
name: Spades | |
parents: | |
- 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI | |
shared: true | |
webViewLink: >- | |
https://drive.google.com/file/d/17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI/view?usp=drivesdk | |
/api/v1/folders/{folderId}/upload: | |
post: | |
tags: | |
- default | |
summary: Upload an asset | |
requestBody: | |
content: | |
multipart/form-data: | |
schema: | |
type: object | |
properties: | |
file: | |
type: string | |
format: binary | |
tags: | |
type: string | |
example: '#Solataire#NewCampaign' | |
app.filename: | |
type: string | |
example: Solataire_NewYear_1280x63.mp4 | |
app.type: | |
type: string | |
example: video | |
meta.created_at: | |
type: string | |
example: '2022-12-12' | |
meta.campaign: | |
type: string | |
example: New Year | |
parameters: | |
- name: folderId | |
in: path | |
schema: | |
type: string | |
required: true | |
responses: | |
"200": | |
description: "OK" | |
headers: | |
Content-Type: | |
schema: | |
type: string | |
example: application/json | |
content: | |
application/json: | |
schema: | |
type: object | |
example: | |
data: | |
appProperties: | |
file.duration: '1002454' | |
uploaded_at: 11-11-2022T22:59 | |
file.name: solitaire_newYear_25632563_UA.mp4 | |
tags: '#hello#There' | |
path: test/upload1 | |
createdTime: | |
value: 1668787344710 | |
dateOnly: false | |
timeZoneShift: 0 | |
hasThumbnail: true | |
id: 17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI | |
mimeType: video/mp4 | |
name: Pexels Videos 1526909.mp4 | |
parents: | |
- 1npaJ9vQCaJQgS_tcc0by5j7UgGtfE0i0 | |
shared: true | |
thumbnailLink: >- | |
https://lh6.googleusercontent.com/TZNqJrctwzFyJxcusE5ALn_-lzjXYrWH389VPXWQxYDnL_j76-pcyyfRPRcovuiHsEt--2ZI69-zXfQ=s220 | |
videoMediaMetadata: | |
durationMillis: 10218 | |
height: 1080 | |
width: 1920 | |
webContentLink: >- | |
https://drive.google.com/uc?id=17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI&export=download | |
webViewLink: >- | |
https://drive.google.com/file/d/17Xtu7I7L7x5pMyj8SKjl6g05AfwTFdjI/view?usp=drivesdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment