mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-22 06:08:48 -06:00
using 201 for created entities in etapi
This commit is contained in:
@@ -6,8 +6,8 @@ Content-Type: application/json
|
||||
}
|
||||
|
||||
> {%
|
||||
client.assert(response.status === 200);
|
||||
|
||||
client.assert(response.status === 201);
|
||||
|
||||
client.global.set("testAuthToken", response.body.authToken);
|
||||
%}
|
||||
|
||||
@@ -31,4 +31,4 @@ Content-Type: application/json
|
||||
GET {{triliumHost}}/etapi/notes/root
|
||||
Authorization: {{testAuthToken}}
|
||||
|
||||
> {% client.assert(response.status === 401); %}
|
||||
> {% client.assert(response.status === 401); %}
|
||||
|
||||
Reference in New Issue
Block a user