Add bruno files
This commit is contained in:
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
|
||||
}
|
||||
Reference in New Issue
Block a user