Initial commit with basic CRUD functionality:
* GET all properties * GET one property by id * CREATE one property * DELETE one property by id
This commit is contained in:
27
bruno/propify/Properties/Create new.bru
Normal file
27
bruno/propify/Properties/Create new.bru
Normal file
@@ -0,0 +1,27 @@
|
||||
meta {
|
||||
name: Create new
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/api/{{API_VERSION}}/properties
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "Mustername 1",
|
||||
"street": "Musterstraße",
|
||||
"houseNumber": "1",
|
||||
"zipCode": "55123",
|
||||
"city": "Musterstadt",
|
||||
"country": "de",
|
||||
"notes": "Lorem ipsum"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
15
bruno/propify/Properties/Get all.bru
Normal file
15
bruno/propify/Properties/Get all.bru
Normal file
@@ -0,0 +1,15 @@
|
||||
meta {
|
||||
name: Get all
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/api/{{API_VERSION}}/properties
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
8
bruno/propify/Properties/folder.bru
Normal file
8
bruno/propify/Properties/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Properties
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
9
bruno/propify/bruno.json
Normal file
9
bruno/propify/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "propify",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
4
bruno/propify/environments/local.bru
Normal file
4
bruno/propify/environments/local.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
vars {
|
||||
BASE_URL: http://localhost:8080
|
||||
API_VERSION: v1
|
||||
}
|
||||
Reference in New Issue
Block a user