Update tests
This commit is contained in:
parent
69ede50a59
commit
d3f74b30e1
@ -19,7 +19,43 @@ GET http://localhost:8081/notes
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
> {%
|
||||
client.global.set("uuid", response.body[0].uuid);
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
|
||||
### Create note
|
||||
POST http://localhost:8081/notes
|
||||
Authorization: Bearer {{token}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"title": "test",
|
||||
"tags": [
|
||||
"Some",
|
||||
"Tags"
|
||||
],
|
||||
"chapters": [
|
||||
{
|
||||
"title": "Chapter 1",
|
||||
"content": "# This is some content"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 201, "Response status is not 201");
|
||||
});
|
||||
%}
|
||||
|
||||
### Get a note
|
||||
GET http://localhost:8081/notes/6c4b1524-8cd5-426c-8a07-9a9eb082e9d4
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
Loading…
x
Reference in New Issue
Block a user