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 {
|
type AccountPin struct {
|
||||||
Hash string `json:"hash"`
|
Hash string `json:"hash"`
|
||||||
|
Size uint64 `json:"size"`
|
||||||
MimeType string `json:"mime_type"`
|
MimeType string `json:"mime_type"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -858,6 +858,7 @@ func (s *S5API) accountPins(jc jape.Context) {
|
||||||
}
|
}
|
||||||
pins[i] = AccountPin{
|
pins[i] = AccountPin{
|
||||||
Hash: base64Url,
|
Hash: base64Url,
|
||||||
|
Size: pin.Upload.Size,
|
||||||
MimeType: pin.Upload.MimeType,
|
MimeType: pin.Upload.MimeType,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -911,10 +911,13 @@ components:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- hash
|
- hash
|
||||||
|
- size
|
||||||
- mime_type
|
- mime_type
|
||||||
properties:
|
properties:
|
||||||
hash:
|
hash:
|
||||||
type: string
|
type: string
|
||||||
|
size:
|
||||||
|
type: integer
|
||||||
mime_type:
|
mime_type:
|
||||||
type: string
|
type: string
|
||||||
RegistryQueryResponse:
|
RegistryQueryResponse:
|
||||||
|
|
Loading…
Reference in New Issue