Implement note creation + update tests
This commit is contained in:
+9
-2
@@ -25,13 +25,20 @@ client.test("Request executed successfully", function() {
|
||||
%}
|
||||
|
||||
### Create a note
|
||||
POST http://localhost:8081/notes/babar
|
||||
POST http://localhost:8081/notes/tortue
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"tags": [
|
||||
"Dev",
|
||||
"Server"
|
||||
]
|
||||
}
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
client.assert(response.status === 201, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user