add crud for forms, templates, shipment, users and auth with keycloak
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
auth {
|
||||
mode: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJtNUtSQkp1T3VqMnFiUElySlRldFVISGVWMWRTLTEzUG5saU1PSWRLcWFvIn0.eyJleHAiOjE3NzA2NTQwMzYsImlhdCI6MTc3MDY1MzczNiwiYXV0aF90aW1lIjoxNzcwNjUzMDU2LCJqdGkiOiJvbnJ0YWM6YmFiMDZiNGMtMjM5ZC00NzM3LTliYWEtNjE2MjBmMzVjM2NhIiwiaXNzIjoiaHR0cHM6Ly9rZXljbG9hay5hbGRvbi5mci9yZWFsbXMvYWxkb24uZnIiLCJhdWQiOlsibmV4dGNsb3VkIiwiYWNjb3VudCJdLCJzdWIiOiJlM2VkN2NiNC1iMDYxLTRiZWQtYTY5YS1lMGQ5ZWJmNDJhZWIiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJhbWFwIiwic2lkIjoiMTkwY2I4YzAtMGYxZC00MWJiLTkwYWYtZjNmMGJkZWMzYjA3IiwiYWNyIjoiMCIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vbG9jYWxob3N0OjgwMDAiXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImRlZmF1bHQtcm9sZXMtZ2lyYXNvbCIsIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJuZXh0Y2xvdWQiOnsicm9sZXMiOlsicGVsYXJnbyIsImZlZmFuIiwiYWRtaW4iLCJnaXJhc29sIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJuYW1lIjoiSnVsaWVuIEFsZG9uIiwicHJlZmVycmVkX3VzZXJuYW1lIjoianVsaWVuIiwiZ2l2ZW5fbmFtZSI6Ikp1bGllbiIsImZhbWlseV9uYW1lIjoiQWxkb24iLCJlbWFpbCI6Imp1bGllbi5hbGRvbkB3YW5hZG9vLmZyIn0.bq-EUtK_UqsIOwI6KDHB8eELMirWPDfTMta904XNeffj_v_ptEnHbecCf1OG6zzwanrBUyl_On7z95zVvVuKX6fQM9iaqxDqm7VlAK1O6n97367evTjQTOggkl3eTgX3xkfbCjJyzP_8RhTPXBsL_Nao8h5kgCnDwUHKEZ547oeoPKVEzlc82SgPi2rsiTVyvznJxGyJkQOTcDDMqTUxj4OVqWD5FMEDCfLnisUNPADhq0Umyw8hU4YwtI1-3hn6aXbnVcDekk2oWVli_6MeJHyejI8_yPnnQMvcp9OqciXRMtCGml1vMHcb5kUh4U9OeAhewzBFb_Mk9KDOspktSQ
|
||||
mode: none
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
|
||||
20
amapcontract/forms/Create.bru
Normal file
20
amapcontract/forms/Create.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/forms/Delete one.bru
Normal file
16
amapcontract/forms/Delete one.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/forms/Get all.bru
Normal file
16
amapcontract/forms/Get all.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/forms/Get one.bru
Normal file
16
amapcontract/forms/Get one.bru
Normal 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
|
||||
}
|
||||
20
amapcontract/forms/Update one.bru
Normal file
20
amapcontract/forms/Update one.bru
Normal 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
|
||||
}
|
||||
31
amapcontract/forms/folder.bru
Normal file
31
amapcontract/forms/folder.bru
Normal file
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: forms
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
Route: forms
|
||||
ExamplePOSTBody: '''
|
||||
{
|
||||
"productor_id": 1,
|
||||
"referer_id": 1,
|
||||
"season": "Hiver-2026",
|
||||
"shipments": 5,
|
||||
"start": "2026-01-10",
|
||||
"end": "2026-05-10"
|
||||
}
|
||||
'''
|
||||
ExamplePUTBody: '''
|
||||
{
|
||||
"productor_id": 1,
|
||||
"referer_id": 1,
|
||||
"season": "updatedHiver-2026",
|
||||
"shipments": 7,
|
||||
"start": "2026-01-10",
|
||||
"end": "2026-05-10"
|
||||
}
|
||||
'''
|
||||
}
|
||||
@@ -5,7 +5,7 @@ meta {
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{Service}}/{{Route}}/2
|
||||
url: {{Service}}/{{Route}}/6
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ meta {
|
||||
}
|
||||
|
||||
put {
|
||||
url: {{Service}}/{{Route}}/1
|
||||
url: {{Service}}/{{Route}}/3
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
@@ -8,6 +8,28 @@ auth {
|
||||
|
||||
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"}
|
||||
ExamplePOSTBody: '''
|
||||
{
|
||||
"name": "test",
|
||||
"unit": 1,
|
||||
"price": 3.50,
|
||||
"price_kg": 3.50,
|
||||
"weight": "1.0",
|
||||
"productor_id": 1,
|
||||
"type": 2,
|
||||
"shipment_ids": []
|
||||
}
|
||||
'''
|
||||
ExamplePUTBody: '''
|
||||
{
|
||||
"name": "test",
|
||||
"unit": 1,
|
||||
"price": 3.50,
|
||||
"price_kg": 3.50,
|
||||
"weight": "1.0",
|
||||
"productor_id": 1,
|
||||
"type": 2,
|
||||
"shipment_ids": [1]
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
20
amapcontract/shipments/Create.bru
Normal file
20
amapcontract/shipments/Create.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/shipments/Delete one.bru
Normal file
16
amapcontract/shipments/Delete one.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/shipments/Get all.bru
Normal file
16
amapcontract/shipments/Get all.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/shipments/Get one.bru
Normal file
16
amapcontract/shipments/Get one.bru
Normal 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
|
||||
}
|
||||
20
amapcontract/shipments/Update one.bru
Normal file
20
amapcontract/shipments/Update one.bru
Normal 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
|
||||
}
|
||||
26
amapcontract/shipments/folder.bru
Normal file
26
amapcontract/shipments/folder.bru
Normal file
@@ -0,0 +1,26 @@
|
||||
meta {
|
||||
name: shipments
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
Route: shipments
|
||||
ExamplePOSTBody: '''
|
||||
{
|
||||
"name": "test",
|
||||
"date": "2026-01-10",
|
||||
"product_ids": [1],
|
||||
"form_id": 3
|
||||
}
|
||||
'''
|
||||
ExamplePUTBody: '''
|
||||
{
|
||||
"name": "updatedtestt",
|
||||
"date": "2026-01-10",
|
||||
"product_ids": [2]
|
||||
}
|
||||
'''
|
||||
}
|
||||
20
amapcontract/users/Create.bru
Normal file
20
amapcontract/users/Create.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/users/Delete one.bru
Normal file
16
amapcontract/users/Delete one.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/users/Get all.bru
Normal file
16
amapcontract/users/Get all.bru
Normal 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
|
||||
}
|
||||
16
amapcontract/users/Get one.bru
Normal file
16
amapcontract/users/Get one.bru
Normal 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
|
||||
}
|
||||
20
amapcontract/users/Update one.bru
Normal file
20
amapcontract/users/Update one.bru
Normal 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
|
||||
}
|
||||
13
amapcontract/users/folder.bru
Normal file
13
amapcontract/users/folder.bru
Normal file
@@ -0,0 +1,13 @@
|
||||
meta {
|
||||
name: users
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
Route: users
|
||||
ExamplePOSTBody: {"name": "test", "email": "test@test.test"}
|
||||
ExamplePUTBody: {"name": "updatedtest", "email": "updatedtest@test.test"}
|
||||
}
|
||||
Reference in New Issue
Block a user