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

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

View File

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