add workflow
Some checks failed
Deploy Amap / deploy (push) Has been cancelled

This commit is contained in:
2026-02-19 23:38:26 +01:00
parent 7574626e52
commit 242e29c8a6
46 changed files with 536 additions and 30 deletions

9
bruno/bruno.json Normal file
View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "bruno",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

7
bruno/collection.bru Normal file
View File

@@ -0,0 +1,7 @@
auth {
mode: none
}
vars:pre-request {
Service: http://localhost:8000
}

20
bruno/forms/Create.bru Normal file
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
}

16
bruno/forms/Get all.bru Normal file
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
}

16
bruno/forms/Get one.bru Normal file
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
}

31
bruno/forms/folder.bru Normal file
View File

@@ -0,0 +1,31 @@
meta {
name: forms
}
auth {
mode: inherit
}
vars:pre-request {
Route: forms
ExamplePOSTBody: '''
{
"productor_id": 2,
"referer_id": 1,
"season": "Automne-2026",
"start": "2026-01-10",
"end": "2026-05-10",
"name": "test very very very form long name"
}
'''
ExamplePUTBody: '''
{
"productor_id": 1,
"referer_id": 1,
"season": "updatedHiver-2026",
"shipments": 7,
"start": "2026-01-10",
"end": "2026-05-10"
}
'''
}

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: productors
}
auth {
mode: inherit
}
vars:pre-request {
Route: productors
ExamplePOSTBody: {"name": "marie", "address": "test", "payment": "test"}
ExamplePUTBody: {"name": "updatetestt", "address": "updatetestt"}
}

20
bruno/products/Create.bru Normal file
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}}/6
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}}/3
body: json
auth: inherit
}
body:json {
{{ExamplePUTBody}}
}
settings {
encodeUrl: true
timeout: 0
}

35
bruno/products/folder.bru Normal file
View File

@@ -0,0 +1,35 @@
meta {
name: products
}
auth {
mode: inherit
}
vars:pre-request {
Route: products
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]
}
'''
}

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}}/1
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,26 @@
meta {
name: shipments
}
auth {
mode: inherit
}
vars:pre-request {
Route: shipments
ExamplePOSTBody: '''
{
"name": "test",
"date": "2026-01-10",
"product_ids": [1],
"form_id": 1
}
'''
ExamplePUTBody: '''
{
"name": "updatedtestt",
"date": "2026-01-10",
"product_ids": [2]
}
'''
}

20
bruno/users/Create.bru Normal file
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}}/1
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

16
bruno/users/Get all.bru Normal file
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
}

16
bruno/users/Get one.bru Normal file
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
}

13
bruno/users/folder.bru Normal file
View File

@@ -0,0 +1,13 @@
meta {
name: users
}
auth {
mode: inherit
}
vars:pre-request {
Route: users
ExamplePOSTBody: {"name": "Julien", "email": "test@test.test"}
ExamplePUTBody: {"name": "updatedtest", "email": "updatedtest@test.test"}
}