Add bruno files
This commit is contained in:
23
Bruno/Endpoints/Auth/Login as normal.bru
Normal file
23
Bruno/Endpoints/Auth/Login as normal.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Login as normal
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/login
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"email": "dominykas@svetikas.lt",
|
||||||
|
"password": "LabaiSlaptas123@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:post-response {
|
||||||
|
accessToken: res.body.accessToken
|
||||||
|
refreshToken: res.body.refreshToken
|
||||||
|
}
|
||||||
22
Bruno/Endpoints/Auth/Refresh token.bru
Normal file
22
Bruno/Endpoints/Auth/Refresh token.bru
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
meta {
|
||||||
|
name: Refresh token
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/refresh
|
||||||
|
body: json
|
||||||
|
auth: none
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"refreshToken": "{{refreshToken}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:post-response {
|
||||||
|
accessToken: res.body.accessToken
|
||||||
|
refreshToken: res.body.refreshToken
|
||||||
|
}
|
||||||
19
Bruno/Endpoints/Auth/Register normal user.bru
Normal file
19
Bruno/Endpoints/Auth/Register normal user.bru
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
meta {
|
||||||
|
name: Register normal user
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/register
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"userName": "Dominykas",
|
||||||
|
"email": "dominykas@svetikas.lt",
|
||||||
|
"password": "LabaiSlaptas123@"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Endpoints/Auth/folder.bru
Normal file
8
Bruno/Endpoints/Auth/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Auth
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
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
|
||||||
|
}
|
||||||
26
Bruno/Endpoints/Posts/Create a post.bru
Normal file
26
Bruno/Endpoints/Posts/Create a post.bru
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
meta {
|
||||||
|
name: Create a post
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"title": "TheoTown logo",
|
||||||
|
"Description": "Some text...",
|
||||||
|
"tags": [],
|
||||||
|
"filename": "super image.png",
|
||||||
|
"fileMimeType": "image/png",
|
||||||
|
"fileSize": 642261
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Posts/Delete post 1.bru
Normal file
15
Bruno/Endpoints/Posts/Delete post 1.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete post 1
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Posts/Get all posts.bru
Normal file
15
Bruno/Endpoints/Posts/Get all posts.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all posts
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Posts/Get file.bru
Normal file
15
Bruno/Endpoints/Posts/Get file.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get file
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1/files/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
11
Bruno/Endpoints/Posts/Get post by id of 1.bru
Normal file
11
Bruno/Endpoints/Posts/Get post by id of 1.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: Get post by id of 1
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
22
Bruno/Endpoints/Posts/Update post 1.bru
Normal file
22
Bruno/Endpoints/Posts/Update post 1.bru
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
meta {
|
||||||
|
name: Update post 1
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"description": "Pakeistas tekstas",
|
||||||
|
"tags": ["high-res"]
|
||||||
|
}
|
||||||
|
}
|
||||||
23
Bruno/Endpoints/Posts/Upload file.bru
Normal file
23
Bruno/Endpoints/Posts/Upload file.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Upload file
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1/files/1
|
||||||
|
body: file
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
headers {
|
||||||
|
Content-Range: bytes 0-642260/642261
|
||||||
|
}
|
||||||
|
|
||||||
|
body:file {
|
||||||
|
file: @file(/home/dominykas/Desktop/icon.png) @contentType(image/png)
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
8
Bruno/Endpoints/Posts/folder.bru
Normal file
8
Bruno/Endpoints/Posts/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Posts
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
18
Bruno/Endpoints/Tags/Create a tag.bru
Normal file
18
Bruno/Endpoints/Tags/Create a tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create a tag
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "high-res"
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Tags/Delete a tag.bru
Normal file
15
Bruno/Endpoints/Tags/Delete a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete a tag
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: high-res
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Tags/Get a tag.bru
Normal file
15
Bruno/Endpoints/Tags/Get a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get a tag
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: high-res
|
||||||
|
}
|
||||||
15
Bruno/Endpoints/Tags/Get all tags.bru
Normal file
15
Bruno/Endpoints/Tags/Get all tags.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all tags
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber:
|
||||||
|
}
|
||||||
19
Bruno/Endpoints/Tags/Update a tag.bru
Normal file
19
Bruno/Endpoints/Tags/Update a tag.bru
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
meta {
|
||||||
|
name: Update a tag
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~tagType:
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: high-res
|
||||||
|
}
|
||||||
8
Bruno/Endpoints/Tags/folder.bru
Normal file
8
Bruno/Endpoints/Tags/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Tags
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
8
Bruno/Endpoints/folder.bru
Normal file
8
Bruno/Endpoints/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Endpoints
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
23
Bruno/Seed/Create accounts/Login as normal.bru
Normal file
23
Bruno/Seed/Create accounts/Login as normal.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Login as normal
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/login
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"email": "dominykas@svetikas.lt",
|
||||||
|
"password": "LabaiSlaptas123@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:post-response {
|
||||||
|
accessToken: res.body.accessToken
|
||||||
|
refreshToken: res.body.refreshToken
|
||||||
|
}
|
||||||
19
Bruno/Seed/Create accounts/Register normal user.bru
Normal file
19
Bruno/Seed/Create accounts/Register normal user.bru
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
meta {
|
||||||
|
name: Register normal user
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/register
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"userName": "Dominykas",
|
||||||
|
"email": "dominykas@svetikas.lt",
|
||||||
|
"password": "LabaiSlaptas123@"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Seed/Create accounts/folder.bru
Normal file
8
Bruno/Seed/Create accounts/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Create accounts
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
15
Bruno/Seed/Post operations/Get all posts.bru
Normal file
15
Bruno/Seed/Post operations/Get all posts.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all posts
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
15
Bruno/Seed/Post operations/Get file 1.bru
Normal file
15
Bruno/Seed/Post operations/Get file 1.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get file 1
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1/files/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
15
Bruno/Seed/Post operations/Get file 2.bru
Normal file
15
Bruno/Seed/Post operations/Get file 2.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get file 2
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/2/files/2
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
11
Bruno/Seed/Post operations/Get post by id of 1 again.bru
Normal file
11
Bruno/Seed/Post operations/Get post by id of 1 again.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: Get post by id of 1 again
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
11
Bruno/Seed/Post operations/Get post by id of 1.bru
Normal file
11
Bruno/Seed/Post operations/Get post by id of 1.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: Get post by id of 1
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
26
Bruno/Seed/Post operations/Post 1/Create a post.bru
Normal file
26
Bruno/Seed/Post operations/Post 1/Create a post.bru
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
meta {
|
||||||
|
name: Create a post
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"title": "TheoTown logo",
|
||||||
|
"Description": "Some text...",
|
||||||
|
"tags": [],
|
||||||
|
"filename": "super image.png",
|
||||||
|
"fileMimeType": "image/png",
|
||||||
|
"fileSize": 642261
|
||||||
|
}
|
||||||
|
}
|
||||||
21
Bruno/Seed/Post operations/Post 1/Create comment 1.bru
Normal file
21
Bruno/Seed/Post operations/Post 1/Create comment 1.bru
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Create comment 1
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"text": "Brilliant"
|
||||||
|
}
|
||||||
|
}
|
||||||
21
Bruno/Seed/Post operations/Post 1/Create comment 2.bru
Normal file
21
Bruno/Seed/Post operations/Post 1/Create comment 2.bru
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Create comment 2
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"text": "I like this"
|
||||||
|
}
|
||||||
|
}
|
||||||
21
Bruno/Seed/Post operations/Post 1/Create comment 3.bru
Normal file
21
Bruno/Seed/Post operations/Post 1/Create comment 3.bru
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Create comment 3
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"text": "Where did you get this? Ignore that this is the same user"
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Seed/Post operations/Post 1/Delete post comment.bru
Normal file
15
Bruno/Seed/Post operations/Post 1/Delete post comment.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete post comment
|
||||||
|
type: http
|
||||||
|
seq: 10
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments/3
|
||||||
|
body: none
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
15
Bruno/Seed/Post operations/Post 1/Get all comments.bru
Normal file
15
Bruno/Seed/Post operations/Post 1/Get all comments.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all comments
|
||||||
|
type: http
|
||||||
|
seq: 8
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
11
Bruno/Seed/Post operations/Post 1/Get specific comment.bru
Normal file
11
Bruno/Seed/Post operations/Post 1/Get specific comment.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: Get specific comment
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Update specific comment
|
||||||
|
type: http
|
||||||
|
seq: 9
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1/comments/1
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"text": "Do you know what used to be here?"
|
||||||
|
}
|
||||||
|
}
|
||||||
23
Bruno/Seed/Post operations/Post 1/Upload a file.bru
Normal file
23
Bruno/Seed/Post operations/Post 1/Upload a file.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Upload a file
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1/files/1
|
||||||
|
body: file
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
headers {
|
||||||
|
Content-Range: bytes 0-642260/642261
|
||||||
|
}
|
||||||
|
|
||||||
|
body:file {
|
||||||
|
file: @file(/home/dominykas/Desktop/icon.png) @contentType(image/png)
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
8
Bruno/Seed/Post operations/Post 1/folder.bru
Normal file
8
Bruno/Seed/Post operations/Post 1/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Post 1
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
26
Bruno/Seed/Post operations/Post 2/Create a post.bru
Normal file
26
Bruno/Seed/Post operations/Post 2/Create a post.bru
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
meta {
|
||||||
|
name: Create a post
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"title": "Tvarkaraštis",
|
||||||
|
"Description": "Kitas tekstas...",
|
||||||
|
"tags": [],
|
||||||
|
"filename": "doesnt really matter.png",
|
||||||
|
"fileMimeType": "image/png",
|
||||||
|
"fileSize": 1410533
|
||||||
|
}
|
||||||
|
}
|
||||||
23
Bruno/Seed/Post operations/Post 2/Upload a file.bru
Normal file
23
Bruno/Seed/Post operations/Post 2/Upload a file.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Upload a file
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/2/files/2
|
||||||
|
body: file
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
headers {
|
||||||
|
Content-Range: bytes 0-1410532/1410533
|
||||||
|
}
|
||||||
|
|
||||||
|
body:file {
|
||||||
|
file: @file(/home/dominykas/Desktop/image.png) @contentType(image/png)
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
8
Bruno/Seed/Post operations/Post 2/folder.bru
Normal file
8
Bruno/Seed/Post operations/Post 2/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Post 2
|
||||||
|
seq: 8
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
22
Bruno/Seed/Post operations/Update post 1.bru
Normal file
22
Bruno/Seed/Post operations/Update post 1.bru
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
meta {
|
||||||
|
name: Update post 1
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"description": "Tekstas pakeistas",
|
||||||
|
"tags": ["high-res"]
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Seed/Post operations/folder.bru
Normal file
8
Bruno/Seed/Post operations/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Post operations
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
18
Bruno/Seed/Tag operations/Create 'delete-me' tag.bru
Normal file
18
Bruno/Seed/Tag operations/Create 'delete-me' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'delete-me' tag
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "delete-me"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
Bruno/Seed/Tag operations/Create 'high-res' tag.bru
Normal file
18
Bruno/Seed/Tag operations/Create 'high-res' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'high-res' tag
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "high-res"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
Bruno/Seed/Tag operations/Create 'theotown' tag.bru
Normal file
18
Bruno/Seed/Tag operations/Create 'theotown' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'theotown' tag
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "theotown"
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Seed/Tag operations/Delete a tag.bru
Normal file
15
Bruno/Seed/Tag operations/Delete a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete a tag
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: delete-me
|
||||||
|
}
|
||||||
15
Bruno/Seed/Tag operations/Get a tag.bru
Normal file
15
Bruno/Seed/Tag operations/Get a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get a tag
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: high-res
|
||||||
|
}
|
||||||
15
Bruno/Seed/Tag operations/Get all tags.bru
Normal file
15
Bruno/Seed/Tag operations/Get all tags.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all tags
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber:
|
||||||
|
}
|
||||||
21
Bruno/Seed/Tag operations/Update a tag.bru
Normal file
21
Bruno/Seed/Tag operations/Update a tag.bru
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Update a tag
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: theotown
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Seed/Tag operations/folder.bru
Normal file
8
Bruno/Seed/Tag operations/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Tag operations
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
8
Bruno/Seed/folder.bru
Normal file
8
Bruno/Seed/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Seed
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
23
Bruno/Testing/Authenticate/Login.bru
Normal file
23
Bruno/Testing/Authenticate/Login.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Login
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/auth/login
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"email": "dominykas@svetikas.lt",
|
||||||
|
"password": "LabaiSlaptas123@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:post-response {
|
||||||
|
accessToken: res.body.accessToken
|
||||||
|
refreshToken: res.body.refreshToken
|
||||||
|
}
|
||||||
8
Bruno/Testing/Authenticate/folder.bru
Normal file
8
Bruno/Testing/Authenticate/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Authenticate
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
21
Bruno/Testing/Comments/Create a post comment.bru
Normal file
21
Bruno/Testing/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": "Gansu"
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Testing/Comments/Delete post comment.bru
Normal file
15
Bruno/Testing/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/Testing/Comments/Get all post comments.bru
Normal file
15
Bruno/Testing/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/Testing/Comments/Get specific post comment.bru
Normal file
11
Bruno/Testing/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
|
||||||
|
}
|
||||||
21
Bruno/Testing/Comments/Update specific post comment.bru
Normal file
21
Bruno/Testing/Comments/Update specific post comment.bru
Normal file
@@ -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": "other value"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Testing/Comments/folder.bru
Normal file
8
Bruno/Testing/Comments/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Comments
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
18
Bruno/Testing/Create tags/Create 'delete-me' tag.bru
Normal file
18
Bruno/Testing/Create tags/Create 'delete-me' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'delete-me' tag
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "delete-me"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
Bruno/Testing/Create tags/Create 'high-res' tag.bru
Normal file
18
Bruno/Testing/Create tags/Create 'high-res' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'high-res' tag
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "high-res"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
Bruno/Testing/Create tags/Create 'theotown' tag.bru
Normal file
18
Bruno/Testing/Create tags/Create 'theotown' tag.bru
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
meta {
|
||||||
|
name: Create 'theotown' tag
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General",
|
||||||
|
"name": "theotown"
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Testing/Create tags/Delete a tag.bru
Normal file
15
Bruno/Testing/Create tags/Delete a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete a tag
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: delete-me
|
||||||
|
}
|
||||||
15
Bruno/Testing/Create tags/Get a tag.bru
Normal file
15
Bruno/Testing/Create tags/Get a tag.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get a tag
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: high-res
|
||||||
|
}
|
||||||
15
Bruno/Testing/Create tags/Get all tags.bru
Normal file
15
Bruno/Testing/Create tags/Get all tags.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all tags
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/tags
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber:
|
||||||
|
}
|
||||||
21
Bruno/Testing/Create tags/Update a tag.bru
Normal file
21
Bruno/Testing/Create tags/Update a tag.bru
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
meta {
|
||||||
|
name: Update a tag
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/tags/:name
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:path {
|
||||||
|
name: theotown
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"type": "General"
|
||||||
|
}
|
||||||
|
}
|
||||||
8
Bruno/Testing/Create tags/folder.bru
Normal file
8
Bruno/Testing/Create tags/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Create tags
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
26
Bruno/Testing/Posts/Create a post copy.bru
Normal file
26
Bruno/Testing/Posts/Create a post copy.bru
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
meta {
|
||||||
|
name: Create a post copy
|
||||||
|
type: http
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"title": "TheoTown logo",
|
||||||
|
"Description": "Some text...",
|
||||||
|
"tags": [],
|
||||||
|
"filename": "super image.png",
|
||||||
|
"fileMimeType": "image/png",
|
||||||
|
"fileSize": 642261
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Bruno/Testing/Posts/Delete post 1.bru
Normal file
15
Bruno/Testing/Posts/Delete post 1.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Delete post 1
|
||||||
|
type: http
|
||||||
|
seq: 7
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
16
Bruno/Testing/Posts/Get all posts via query excluded.bru
Normal file
16
Bruno/Testing/Posts/Get all posts via query excluded.bru
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all posts via query excluded
|
||||||
|
type: http
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts?query=-high-res
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
query: -high-res
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
16
Bruno/Testing/Posts/Get all posts via query include.bru
Normal file
16
Bruno/Testing/Posts/Get all posts via query include.bru
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all posts via query include
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts?query=%2Bhigh-res
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
query: %2Bhigh-res
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
15
Bruno/Testing/Posts/Get all posts.bru
Normal file
15
Bruno/Testing/Posts/Get all posts.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: Get all posts
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
params:query {
|
||||||
|
~pageNumber: 1
|
||||||
|
}
|
||||||
11
Bruno/Testing/Posts/Get post by id of 1.bru
Normal file
11
Bruno/Testing/Posts/Get post by id of 1.bru
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
meta {
|
||||||
|
name: Get post by id of 1
|
||||||
|
type: http
|
||||||
|
seq: 6
|
||||||
|
}
|
||||||
|
|
||||||
|
get {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
23
Bruno/Testing/Posts/Update post 1.bru
Normal file
23
Bruno/Testing/Posts/Update post 1.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Update post 1
|
||||||
|
type: http
|
||||||
|
seq: 8
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/1
|
||||||
|
body: json
|
||||||
|
auth: bearer
|
||||||
|
}
|
||||||
|
|
||||||
|
auth:bearer {
|
||||||
|
token: {{accessToken}}
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"title": "Labas",
|
||||||
|
"description": "kitas tekstas",
|
||||||
|
"tags": ["high-res"]
|
||||||
|
}
|
||||||
|
}
|
||||||
23
Bruno/Testing/Posts/Upload file copy.bru
Normal file
23
Bruno/Testing/Posts/Upload file copy.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: Upload file copy
|
||||||
|
type: http
|
||||||
|
seq: 5
|
||||||
|
}
|
||||||
|
|
||||||
|
patch {
|
||||||
|
url: {{baseUrl}}/api/posts/2/files/2
|
||||||
|
body: file
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
headers {
|
||||||
|
Content-Range: bytes 0-642260/642261
|
||||||
|
}
|
||||||
|
|
||||||
|
body:file {
|
||||||
|
file: @file(/home/dominykas/Desktop/icon.png) @contentType(image/png)
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
8
Bruno/Testing/Posts/folder.bru
Normal file
8
Bruno/Testing/Posts/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Posts
|
||||||
|
seq: 3
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
8
Bruno/Testing/folder.bru
Normal file
8
Bruno/Testing/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Testing
|
||||||
|
seq: 4
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
9
Bruno/bruno.json
Normal file
9
Bruno/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version": "1",
|
||||||
|
"name": "t120b165",
|
||||||
|
"type": "collection",
|
||||||
|
"ignore": [
|
||||||
|
"node_modules",
|
||||||
|
".git"
|
||||||
|
]
|
||||||
|
}
|
||||||
12
Bruno/collection.bru
Normal file
12
Bruno/collection.bru
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
meta {
|
||||||
|
name: My Title
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: none
|
||||||
|
}
|
||||||
|
|
||||||
|
vars:pre-request {
|
||||||
|
baseUrl: http://localhost:5259
|
||||||
|
~baseUrl: http://localhost:8080
|
||||||
|
}
|
||||||
3
Bruno/environments/Environment 1.bru
Normal file
3
Bruno/environments/Environment 1.bru
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
vars {
|
||||||
|
baseUrl: http://localhost:5259
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user