Document post endpoints

This commit is contained in:
2025-10-06 16:58:13 +03:00
parent 8d012f04f1
commit 0a4bd23d30
7 changed files with 111 additions and 23 deletions

View File

@@ -7,11 +7,7 @@ meta {
post {
url: {{baseUrl}}/api/posts/1/comments
body: json
auth: bearer
}
auth:bearer {
token: {{accessToken}}
auth: inherit
}
body:json {

View File

@@ -7,9 +7,5 @@ meta {
delete {
url: {{baseUrl}}/api/posts/1/comments/1
body: none
auth: bearer
}
auth:bearer {
token: {{accessToken}}
auth: inherit
}

View File

@@ -7,11 +7,7 @@ meta {
patch {
url: {{baseUrl}}/api/posts/1/comments/1
body: json
auth: bearer
}
auth:bearer {
token: {{accessToken}}
auth: inherit
}
body:json {

View File

@@ -0,0 +1,23 @@
meta {
name: Login as admin
type: http
seq: 5
}
post {
url: {{baseUrl}}/api/auth/login
body: json
auth: none
}
body:json {
{
"email": "admin@localhost",
"password": "ChangeMe123#"
}
}
vars:post-response {
accessToken: res.body.accessToken
refreshToken: res.body.refreshToken
}

View File

@@ -7,7 +7,7 @@ meta {
post {
url: {{baseUrl}}/api/auth/login
body: json
auth: inherit
auth: none
}
body:json {

View File

@@ -7,7 +7,7 @@ meta {
post {
url: {{baseUrl}}/api/auth/register
body: json
auth: inherit
auth: none
}
body:json {