Update tests
This commit is contained in:
parent
5850541ad8
commit
ecf292bccf
@ -7,25 +7,41 @@ Content-Type: application/json
|
||||
"password": "test"
|
||||
}
|
||||
|
||||
> {% client.global.set("token", response.body.token); %}
|
||||
> {%
|
||||
client.global.set("token", response.body.token);
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
|
||||
### Get notes
|
||||
GET http://localhost:8081/notes
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
|
||||
### Create a note
|
||||
POST http://localhost:8081/notes/babar
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"tags": [
|
||||
"Test",
|
||||
"Dev"
|
||||
]
|
||||
}
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
|
||||
### Create a note
|
||||
### Read a note
|
||||
GET http://localhost:8081/notes/babar
|
||||
Content-Type: application/json
|
||||
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