From 210611bbbe9a7de6858a051c6914844303c25222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20=C3=96zkorkmaz?= Date: Fri, 12 Sep 2025 23:42:32 +0200 Subject: [PATCH] Added project related setup to Bruno --- bruno/propify/Projects/Create new.bru | 31 +++++++++++++++++++++ bruno/propify/Projects/Delete one by ID.bru | 31 +++++++++++++++++++++ bruno/propify/Projects/Get all.bru | 19 +++++++++++++ bruno/propify/Projects/Get one by ID.bru | 19 +++++++++++++ bruno/propify/Projects/Get stats.bru | 19 +++++++++++++ bruno/propify/Projects/folder.bru | 8 ++++++ 6 files changed, 127 insertions(+) create mode 100644 bruno/propify/Projects/Create new.bru create mode 100644 bruno/propify/Projects/Delete one by ID.bru create mode 100644 bruno/propify/Projects/Get all.bru create mode 100644 bruno/propify/Projects/Get one by ID.bru create mode 100644 bruno/propify/Projects/Get stats.bru create mode 100644 bruno/propify/Projects/folder.bru diff --git a/bruno/propify/Projects/Create new.bru b/bruno/propify/Projects/Create new.bru new file mode 100644 index 0000000..2979898 --- /dev/null +++ b/bruno/propify/Projects/Create new.bru @@ -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 +} diff --git a/bruno/propify/Projects/Delete one by ID.bru b/bruno/propify/Projects/Delete one by ID.bru new file mode 100644 index 0000000..367fd35 --- /dev/null +++ b/bruno/propify/Projects/Delete one by ID.bru @@ -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 +} diff --git a/bruno/propify/Projects/Get all.bru b/bruno/propify/Projects/Get all.bru new file mode 100644 index 0000000..7c2af72 --- /dev/null +++ b/bruno/propify/Projects/Get all.bru @@ -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 +} diff --git a/bruno/propify/Projects/Get one by ID.bru b/bruno/propify/Projects/Get one by ID.bru new file mode 100644 index 0000000..d594922 --- /dev/null +++ b/bruno/propify/Projects/Get one by ID.bru @@ -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 +} diff --git a/bruno/propify/Projects/Get stats.bru b/bruno/propify/Projects/Get stats.bru new file mode 100644 index 0000000..3d2def5 --- /dev/null +++ b/bruno/propify/Projects/Get stats.bru @@ -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 +} diff --git a/bruno/propify/Projects/folder.bru b/bruno/propify/Projects/folder.bru new file mode 100644 index 0000000..725865d --- /dev/null +++ b/bruno/propify/Projects/folder.bru @@ -0,0 +1,8 @@ +meta { + name: Projects + seq: 4 +} + +auth { + mode: inherit +}