Add bruno files
This commit is contained in:
21
Bruno/Endpoints/Posts/Comments/Create a post comment.bru
Normal file
21
Bruno/Endpoints/Posts/Comments/Create a post comment.bru
Normal file
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Create a post comment
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{baseUrl}}/api/posts/1/comments
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{accessToken}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"text": "Where'd you find this? Ignore that this is the same author btw"
|
||||
}
|
||||
}
|
||||
15
Bruno/Endpoints/Posts/Comments/Delete post comment.bru
Normal file
15
Bruno/Endpoints/Posts/Comments/Delete post comment.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Delete post comment
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{baseUrl}}/api/posts/1/comments/1
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{accessToken}}
|
||||
}
|
||||
15
Bruno/Endpoints/Posts/Comments/Get all post comments.bru
Normal file
15
Bruno/Endpoints/Posts/Comments/Get all post comments.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Get all post comments
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/posts/1/comments
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
~pageNumber: 1
|
||||
}
|
||||
11
Bruno/Endpoints/Posts/Comments/Get specific post comment.bru
Normal file
11
Bruno/Endpoints/Posts/Comments/Get specific post comment.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Get specific post comment
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/posts/1/comments/1
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
meta {
|
||||
name: Update specific post comment
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{baseUrl}}/api/posts/1/comments/1
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{accessToken}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"text": "What did the previous one say? No one will know"
|
||||
}
|
||||
}
|
||||
8
Bruno/Endpoints/Posts/Comments/folder.bru
Normal file
8
Bruno/Endpoints/Posts/Comments/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Comments
|
||||
seq: 8
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user