Some improvements:
* Switches to PostgreSQL * Added Minio storage * Added attachments to properties * Introduced DTOs for improved security
This commit is contained in:
39
bruno/propify/Properties/Upload files.bru
Normal file
39
bruno/propify/Properties/Upload files.bru
Normal file
@@ -0,0 +1,39 @@
|
||||
meta {
|
||||
name: Upload files
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE_URL}}/api/{{API_VERSION}}/properties/f4eb0c54-7c8f-4e60-b71f-1d08b8b6e2d4/upload
|
||||
body: multipartForm
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Bungalow",
|
||||
"street": "Hebbelstraße",
|
||||
"houseNumber": "30",
|
||||
"zipCode": "55127",
|
||||
"city": "Mainz",
|
||||
"country": "DE",
|
||||
"notes": "Lorem ipsum"
|
||||
}
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
attachments: @file(/Users/murat/Pictures/IMG_0229.jpeg|/Users/murat/Pictures/schnürsenkel technik.gif)
|
||||
}
|
||||
|
||||
body:file {
|
||||
file: @file(/Users/murat/Pictures/IMG_0229.jpeg) @contentType(image/jpeg)
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Reference in New Issue
Block a user