Spec in question:
openapi: '3.0.2'
info:
title: Video Storage Server API
version: '1.0'
servers:
- url: http://localhost:8080
paths:
/files/{fileid}:
get:
description: Download a video file by fileid.
parameters:
- in: path
name: fileid
required: true
schema:
type: string
responses:
'200':
description: OK
headers:
Content-Disposition:
schema:
type: string
content:
video/mp4: # foo.mp4
schema:
type: string
format: binary
video/mpeg: # bar.mpg
schema:
type: string
format: binary
I understand I need to have my server respond to a get request with fileid.
The server stores video.
The response from server, should it be like a video that user can play in browser/Postman or should be the byte array of the video?
i.e. Should the response be:
or
Also, what does content#video/mp4 / content#video/mpeg mean? Do I need to set content-type in my response to be one of these 2?
What should my Content-Disposition be?

