Files
SAE-BUT2-backend/tests/Events/tasks/create event task.bru
T

43 lines
651 B
Plaintext

meta {
name: create event task
type: http
seq: 1
}
post {
url: {{url}}/api/events/task
body: json
auth: inherit
}
body:json {
{
"event_id": "{{event_id}}",
"name": "{{name}}",
"location": "{{location}}",
"description": "{{description}}",
"start": "{{start}}",
"end": "{{end}}",
"max_participants": "{{max_participants}}"
}
}
vars:pre-request {
event_id: 1
name: Organisation plage
location: la rochelle
description: il faut organiser la sortie
start: 2025-01-15T13:45
end: 2025-03-15T13:00
max_participants: 5
}
assert {
res.status: eq 200
}
settings {
encodeUrl: true
timeout: 0
}