mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add blobId to the ETAPI #4005
This commit is contained in:
parent
f4b5d43899
commit
b46d5f4a71
@ -782,6 +782,9 @@ components:
|
|||||||
isProtected:
|
isProtected:
|
||||||
type: boolean
|
type: boolean
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
blobId:
|
||||||
|
type: string
|
||||||
|
description: ID of the blob object. For "cold" notes, this is effectively a content hash
|
||||||
attributes:
|
attributes:
|
||||||
$ref: '#/components/schemas/AttributeList'
|
$ref: '#/components/schemas/AttributeList'
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -5,6 +5,7 @@ function mapNoteToPojo(note) {
|
|||||||
title: note.title,
|
title: note.title,
|
||||||
type: note.type,
|
type: note.type,
|
||||||
mime: note.mime,
|
mime: note.mime,
|
||||||
|
blobId: note.blobId,
|
||||||
dateCreated: note.dateCreated,
|
dateCreated: note.dateCreated,
|
||||||
dateModified: note.dateModified,
|
dateModified: note.dateModified,
|
||||||
utcDateCreated: note.utcDateCreated,
|
utcDateCreated: note.utcDateCreated,
|
||||||
@ -46,4 +47,4 @@ module.exports = {
|
|||||||
mapNoteToPojo,
|
mapNoteToPojo,
|
||||||
mapBranchToPojo,
|
mapBranchToPojo,
|
||||||
mapAttributeToPojo
|
mapAttributeToPojo
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user