Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Latest commit

 

History

History
98 lines (61 loc) · 3.1 KB

AttachmentsApi.md

File metadata and controls

98 lines (61 loc) · 3.1 KB

\AttachmentsApi

All URIs are relative to http://demo-v1.gilfoyle.dreamvo.com

Method HTTP request Description
AddMediaAttachment Post /medias/{media_id}/attachments/{key} Add attachment to a media
DeleteMediaAttachment Delete /medias/{media_id}/attachments/{key} Delete attachment of a media
GetMediaAttachments Get /medias/{media_id}/attachments Get attachments of a media

AddMediaAttachment

UtilDataResponse AddMediaAttachment(ctx, mediaId, key, file) Add attachment to a media

Add attachment to a media

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
mediaId string Media identifier
key string Attachment unique identifier
file *os.File Attachment file

Return type

UtilDataResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteMediaAttachment

UtilDataResponse DeleteMediaAttachment(ctx, mediaId, key) Delete attachment of a media

Delete attachment of a media

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
mediaId string Media identifier
key string Attachment unique identifier

Return type

UtilDataResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetMediaAttachments

UtilDataResponse GetMediaAttachments(ctx, mediaId) Get attachments of a media

Get attachments of a media

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
mediaId string Media identifier

Return type

UtilDataResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]