Some improvements:
* Switches to PostgreSQL * Added Minio storage * Added attachments to properties * Introduced DTOs for improved security
This commit is contained in:
@@ -5,7 +5,7 @@ meta {
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{KEYCLOAK_BASE_URL}}/realms/propify/protocol/openid-connect/token
|
||||
url: {{KEYCLOAK_BASE_URL}}/realms/{{KEYCLOAK_REALM}}/protocol/openid-connect/token
|
||||
body: formUrlEncoded
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ auth:bearer {
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Mustername 1",
|
||||
"street": "Musterstraße",
|
||||
"houseNumber": "1",
|
||||
"zipCode": "55123",
|
||||
"city": "Musterstadt",
|
||||
"country": "de",
|
||||
"name": "Bungalow",
|
||||
"street": "Hebbelstraße",
|
||||
"houseNumber": "30",
|
||||
"zipCode": "55127",
|
||||
"city": "Mainz",
|
||||
"country": "DE",
|
||||
"notes": "Lorem ipsum"
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "propify",
|
||||
"name": "skamp-api",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
vars {
|
||||
API_BASE_URL: http://localhost:8080
|
||||
API_VERSION: v1
|
||||
BEARER_TOKEN: -
|
||||
KEYCLOAK_BASE_URL: http://localhost:8280
|
||||
DEV_USERNAME: dev@example.com
|
||||
DEV_PASSWORD: dev
|
||||
ADMIN_USERNAME: admin@example.com
|
||||
ADMIN_PASSWORD: admin
|
||||
KEYCLOAK_CLIENT_ID: propify-app
|
||||
KEYCLOAK_CLIENT_ID: skamp-app
|
||||
KEYCLOAK_REALM: skamp
|
||||
}
|
||||
vars:secret [
|
||||
BEARER_TOKEN
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user