@@ -17,11 +17,11 @@ Content-Type: application/json
17
17
GET {{triliumHost }}/etapi/notes/{{createdNoteId}}
18
18
Authorization: {{authToken}}
19
19
20
- > {%
20
+ > {%
21
21
client.assert(response.status === 200);
22
- client.assert(response.body.title === 'Hello');
23
- client.assert(response.body.type === 'code');
24
- client.assert(response.body.mime === 'application/json');
22
+ client.assert(response.body.title === 'Hello');
23
+ client.assert(response.body.type === 'code');
24
+ client.assert(response.body.mime === 'application/json');
25
25
%}
26
26
27
27
###
@@ -33,19 +33,23 @@ Content-Type: application/json
33
33
{
34
34
"title" : " Wassup" ,
35
35
"type" : " html" ,
36
- "mime" : " text/html"
36
+ "mime" : " text/html" ,
37
+ "dateCreated" : " 2023-08-21 23:38:51.123+0200" ,
38
+ "utcDateCreated" : " 2023-08-21 23:38:51.123Z"
37
39
}
38
40
39
41
###
40
42
41
43
GET {{triliumHost }}/etapi/notes/{{createdNoteId}}
42
44
Authorization: {{authToken}}
43
45
44
- > {%
46
+ > {%
45
47
client.assert(response.status === 200);
46
- client.assert(response.body.title === 'Wassup');
47
- client.assert(response.body.type === 'html');
48
- client.assert(response.body.mime === 'text/html');
48
+ client.assert(response.body.title === 'Wassup');
49
+ client.assert(response.body.type === 'html');
50
+ client.assert(response.body.mime === 'text/html');
51
+ client.assert(response.body.dateCreated == "2023-08-21 23:38:51.123+0200");
52
+ client.assert(response.body.utcDateCreated == "2023-08-21 23:38:51.123Z");
49
53
%}
50
54
51
55
###
@@ -58,8 +62,8 @@ Content-Type: application/json
58
62
"isProtected" : true
59
63
}
60
64
61
- > {%
62
- client.assert(response.status === 400);
65
+ > {%
66
+ client.assert(response.status === 400);
63
67
client.assert(response.body.code == "PROPERTY_NOT_ALLOWED");
64
68
%}
65
69
@@ -73,7 +77,7 @@ Content-Type: application/json
73
77
"title" : true
74
78
}
75
79
76
- > {%
77
- client.assert(response.status === 400);
80
+ > {%
81
+ client.assert(response.status === 400);
78
82
client.assert(response.body.code == "PROPERTY_VALIDATION_ERROR");
79
83
%}
0 commit comments