allow specifying date created in the ETAPI, #4199

This commit is contained in:
zadam
2023-08-30 00:11:32 +02:00
parent 515c5411a6
commit 041758766a
9 changed files with 396 additions and 439 deletions

View File

@@ -7,13 +7,17 @@ Content-Type: application/json
"parentNoteId": "root",
"title": "Hello",
"type": "text",
"content": "Hi there!"
"content": "Hi there!",
"dateCreated": "2023-08-21 23:38:51.123+0200",
"utcDateCreated": "2023-08-21 23:38:51.123Z"
}
> {%
client.assert(response.status === 201);
client.assert(response.body.note.noteId.startsWith("forcedId"));
client.assert(response.body.note.title == "Hello");
client.assert(response.body.note.dateCreated == "2023-08-21 23:38:51.123+0200");
client.assert(response.body.note.utcDateCreated == "2023-08-21 23:38:51.123Z");
client.assert(response.body.branch.parentNoteId == "root");
client.log(`Created note ` + response.body.note.noteId + ` and branch ` + response.body.branch.branchId);