All URIs are relative to http://demo-v1.gilfoyle.dreamvo.com
Method | HTTP request | Description |
---|---|---|
CreateMedia | Post /medias | Create a media |
DeleteMedia | Delete /medias/{id} | Delete a media |
GetAllMedias | Get /medias | Query medias |
GetMedia | Get /medias/{id} | Get a media |
UpdateMedia | Patch /medias/{id} | Update a media |
UploadAudio | Post /medias/{id}/upload/audio | Upload a audio file |
UploadVideo | Post /medias/{id}/upload/video | Upload a video file |
InlineResponse2002 CreateMedia(ctx, media) Create a media
Create a new media
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
media | ApiCreateMedia | Media data |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UtilDataResponse DeleteMedia(ctx, id) Delete a media
Delete one media
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Media ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2001 GetAllMedias(ctx, optional) Query medias
Get latest created medias
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *MediasApiGetAllMediasOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a MediasApiGetAllMediasOpts struct
Name | Type | Description | Notes |
---|---|---|---|
limit | optional.Int32 | Max number of results | |
offset | optional.Int32 | Number of results to ignore |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 GetMedia(ctx, id) Get a media
Get one media
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Media ID |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 UpdateMedia(ctx, id, media) Update a media
Update an existing media
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Media ID | |
media | ApiUpdateMedia | Media data |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 UploadAudio(ctx, id, file) Upload a audio file
Upload a new audio file for a given media ID
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Media identifier | |
file | *os.File | Audio file |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 UploadVideo(ctx, id, file) Upload a video file
Upload a new video file for a given media ID
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | Media identifier | |
file | *os.File | Video file |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]