add project base

This commit is contained in:
Julien Aldon
2026-02-09 17:39:09 +01:00
commit 145f3f632e
43 changed files with 1045 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
meta {
name: Create
type: http
seq: 1
}
post {
url: {{Service}}/{{Route}}
body: json
auth: inherit
}
body:json {
{{ExamplePOSTBody}}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,16 @@
meta {
name: Delete one
type: http
seq: 2
}
delete {
url: {{Service}}/{{Route}}/2
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,16 @@
meta {
name: Get all
type: http
seq: 2
}
get {
url: {{Service}}/{{Route}}
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,16 @@
meta {
name: Get one
type: http
seq: 2
}
get {
url: {{Service}}/{{Route}}/1
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,20 @@
meta {
name: Update one
type: http
seq: 2
}
put {
url: {{Service}}/{{Route}}/1
body: json
auth: inherit
}
body:json {
{{ExamplePUTBody}}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,13 @@
meta {
name: products
}
auth {
mode: inherit
}
vars:pre-request {
Route: products
ExamplePOSTBody: {"name": "test", "unit": "KILO", "price": 3.50, "price_kg": 3.50, "weight": "1.0", "productor_id": 1}
ExamplePUTBody: {"name": "updatetestt", "address": "updatetestt"}
}