diff --git a/api/s5/messages.go b/api/s5/messages.go index b90bcc0..1f158a6 100644 --- a/api/s5/messages.go +++ b/api/s5/messages.go @@ -1,6 +1,8 @@ package s5 import ( + "time" + "git.lumeweb.com/LumeWeb/libs5-go/encoding" "git.lumeweb.com/LumeWeb/libs5-go/types" "git.lumeweb.com/LumeWeb/portal/db/models" @@ -126,7 +128,8 @@ type AccountPinResponse struct { } type AccountPin struct { - Hash string `json:"hash"` - Size uint64 `json:"size"` - MimeType string `json:"mime_type"` + Hash string `json:"hash"` + Size uint64 `json:"size"` + PinnedAt time.Time `json:"pinned_at"` + MimeType string `json:"mime_type"` } diff --git a/api/s5/s5.go b/api/s5/s5.go index e27bebd..dc318ff 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -872,6 +872,7 @@ func (s *S5API) accountPins(jc jape.Context) { pins[i] = AccountPin{ Hash: base64Url, Size: pin.Upload.Size, + PinnedAt: pin.CreatedAt, MimeType: pin.Upload.MimeType, } } diff --git a/api/s5/swagger.yaml b/api/s5/swagger.yaml index ad5b46b..637f6fb 100644 --- a/api/s5/swagger.yaml +++ b/api/s5/swagger.yaml @@ -912,12 +912,15 @@ components: required: - hash - size + - pinned_at - mime_type properties: hash: type: string size: type: integer + pinned_at: + type: string mime_type: type: string RegistryQueryResponse: