123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- definitions:
- model.File:
- properties:
- created_at:
- type: string
- id:
- type: integer
- name:
- type: string
- path:
- type: string
- size:
- type: integer
- type:
- type: string
- updated_at:
- type: string
- type: object
- info:
- contact: {}
- paths:
- /api/files:
- get:
- description: Get a list of all files in the cloud storage
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- items:
- $ref: '#/definitions/model.File'
- type: array
- summary: List all files
- tags:
- - files
- post:
- consumes:
- - multipart/form-data
- description: Upload a file to the cloud storage
- parameters:
- - description: File to upload
- in: formData
- name: file
- required: true
- type: file
- produces:
- - application/json
- responses:
- "200":
- description: OK
- schema:
- $ref: '#/definitions/model.File'
- summary: Upload a file
- tags:
- - files
- swagger: "2.0"
|