Initial impl
This commit is contained in:
commit
4b729c5d32
133 files changed
+20475
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
### Login
|
||||
POST {{base_url}}/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"user": "ada",
|
||||
"password": "{{password}}"
|
||||
}
|
||||
|
||||
> {%
|
||||
client.global.set("token", response.body.token);
|
||||
client.test("ok", function() {
|
||||
client.assert(response.status === 200);
|
||||
});
|
||||
%}
|
||||
|
||||
### Me
|
||||
GET {{base_url}}/me
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
> ./scripts/check-me.js
|
||||
|
||||
<> ./responses/me-2024-01-01.json
|
||||
Reference in new issue
Block a user