Add HikaryCP to pool db connections
This commit is contained in:
+3
-32
@@ -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");
|
||||
});
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user