Add bruno files

This commit is contained in:
2025-10-06 10:42:47 +03:00
parent 0c179993d9
commit dda20e3fe9
86 changed files with 1353 additions and 0 deletions

View 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
}
}

View 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}}
}

View 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
}

View 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
}

View 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
}

View 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
}

View 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"]
}
}

View 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
}

View File

@@ -0,0 +1,8 @@
meta {
name: Posts
seq: 3
}
auth {
mode: inherit
}