add blobId to the ETAPI #4005

This commit is contained in:
zadam 2023-06-04 11:59:19 +02:00
parent f4b5d43899
commit b46d5f4a71
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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
};
};