mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
add blobId to the ETAPI #4005
This commit is contained in:
parent
f4b5d43899
commit
b46d5f4a71
2 changed files with 5 additions and 1 deletions
|
@ -782,6 +782,9 @@ components:
|
|||
isProtected:
|
||||
type: boolean
|
||||
readOnly: true
|
||||
blobId:
|
||||
type: string
|
||||
description: ID of the blob object. For "cold" notes, this is effectively a content hash
|
||||
attributes:
|
||||
$ref: '#/components/schemas/AttributeList'
|
||||
readOnly: true
|
||||
|
|
|
@ -5,6 +5,7 @@ function mapNoteToPojo(note) {
|
|||
title: note.title,
|
||||
type: note.type,
|
||||
mime: note.mime,
|
||||
blobId: note.blobId,
|
||||
dateCreated: note.dateCreated,
|
||||
dateModified: note.dateModified,
|
||||
utcDateCreated: note.utcDateCreated,
|
||||
|
@ -46,4 +47,4 @@ module.exports = {
|
|||
mapNoteToPojo,
|
||||
mapBranchToPojo,
|
||||
mapAttributeToPojo
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue