refactor: add upload size to account pin response
This commit is contained in:
parent
abec1877cd
commit
d895d047b3
|
@ -127,5 +127,6 @@ type AccountPinResponse struct {
|
|||
|
||||
type AccountPin struct {
|
||||
Hash string `json:"hash"`
|
||||
Size uint64 `json:"size"`
|
||||
MimeType string `json:"mime_type"`
|
||||
}
|
||||
|
|
|
@ -858,6 +858,7 @@ func (s *S5API) accountPins(jc jape.Context) {
|
|||
}
|
||||
pins[i] = AccountPin{
|
||||
Hash: base64Url,
|
||||
Size: pin.Upload.Size,
|
||||
MimeType: pin.Upload.MimeType,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -911,10 +911,13 @@ components:
|
|||
type: object
|
||||
required:
|
||||
- hash
|
||||
- size
|
||||
- mime_type
|
||||
properties:
|
||||
hash:
|
||||
type: string
|
||||
size:
|
||||
type: integer
|
||||
mime_type:
|
||||
type: string
|
||||
RegistryQueryResponse:
|
||||
|
|
Loading…
Reference in New Issue