Added project related setup to Bruno
This commit is contained in:
31
bruno/propify/Projects/Create new.bru
Normal file
31
bruno/propify/Projects/Create new.bru
Normal file
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: Create new
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{API_BASE_URL}}/api/{{API_VERSION}}/projects
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Test Projekt 1",
|
||||
"eventNumber": "123-456",
|
||||
"description": "This is the first project",
|
||||
"projectType": "energy_consulting_wg",
|
||||
"status": "preparation",
|
||||
"propertyId": "ff27cd1b-9eab-482c-8fd7-8093573efca2",
|
||||
"amountRequested": "10000"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
31
bruno/propify/Projects/Delete one by ID.bru
Normal file
31
bruno/propify/Projects/Delete one by ID.bru
Normal file
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: Delete one by ID
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
delete {
|
||||
url: API_BASE_URL}}/api/{{API_VERSION}}/projects/e64d5e53-cd45-45fb-9237-46078077bf22
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Mustername 1",
|
||||
"street": "Musterstraße",
|
||||
"houseNumber": "1",
|
||||
"zipCode": "55123",
|
||||
"city": "Musterstadt",
|
||||
"country": "de",
|
||||
"notes": "Lorem ipsum"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
19
bruno/propify/Projects/Get all.bru
Normal file
19
bruno/propify/Projects/Get all.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Get all
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{API_BASE_URL}}/api/{{API_VERSION}}/projects
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
19
bruno/propify/Projects/Get one by ID.bru
Normal file
19
bruno/propify/Projects/Get one by ID.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Get one by ID
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{API_BASE_URL}}/api/{{API_VERSION}}/projects/5dba067e-d7fd-4d79-a08a-ec379834938a
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
19
bruno/propify/Projects/Get stats.bru
Normal file
19
bruno/propify/Projects/Get stats.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Get stats
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{API_BASE_URL}}/api/{{API_VERSION}}/projects/stats
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: {{BEARER_TOKEN}}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
8
bruno/propify/Projects/folder.bru
Normal file
8
bruno/propify/Projects/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Projects
|
||||
seq: 4
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user