refactor: move backend in apps/backend
This commit is contained in:
1 parent
cf529278bd
commit
e2b471312c
178 files changed
+210
-193
No files matched your search
+31
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: Assign task to user
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/events/task/assign/{{id}}
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"task_id": "{{task_id}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
id: 3
|
||||
task_id: 2
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
meta {
|
||||
name: Assign task
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/events/task/assign
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"task_id": "{{taskId}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
taskId: 1
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
meta {
|
||||
name: Delete task
|
||||
type: http
|
||||
seq: 8
|
||||
}
|
||||
|
||||
delete {
|
||||
url: {{url}}/api/events/tasks/{{id}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
id: 1
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
meta {
|
||||
name: Is user assigned
|
||||
type: http
|
||||
seq: 9
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/api/events/tasks/{{id}}/assigned
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
id: 1
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
|
||||
docs {
|
||||
# /events/tasks/{id}/assigned -- GET
|
||||
|
||||
Vérifie si l'utilisateur connecté est assigné à une tâche spécifique.
|
||||
|
||||
Authentification requise.
|
||||
|
||||
Entrée: id (identifiant de la tâche)
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: Unassign task to user
|
||||
type: http
|
||||
seq: 7
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/events/task/unassign/{{id}}
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"task_id": "{{task_id}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
id: 3
|
||||
task_id: 2
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
meta {
|
||||
name: Unassign task
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/events/task/unassign
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"task_id": "{{taskId}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
taskId: 1
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
meta {
|
||||
name: Update Task
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/api/events/tasks/{{id}}/update
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name": "{{name}}",
|
||||
"description": "{{description}}",
|
||||
"location": "{{location}}",
|
||||
"start": "{{start}}",
|
||||
"end": "{{end}}",
|
||||
"max_participants": "{{max_participants}}"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
id: 1
|
||||
name: Organisation plage
|
||||
description: il faut organiser la sortie
|
||||
location: La Rochelle
|
||||
start: 2025-01-15T13:45
|
||||
end: 2025-03-15T13:00
|
||||
max_participants: 5
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
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
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: tasks
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in new issue
Block a user