Add HikaryCP to pool db connections

This commit is contained in:
2020-04-25 14:17:52 +02:00
parent 6fbb7f7050
commit 9986e7a2d2
4 changed files with 17 additions and 40 deletions
+3 -32
View File
@@ -1,10 +1,10 @@
# Register a new user
POST http://localhost:8081/login
POST http://localhost:8081/user/login
Content-Type: application/json
{
"username": "hubert",
"password": "test"
"username": "{{username}}",
"password": "{{password}}"
}
> {%
@@ -23,32 +23,3 @@ client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
%}
### Create a note
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 === 201, "Response status is not 200");
});
%}
### 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");
});
%}