Initial commit - SOGOMS v1.0.0
- sogoctl: supervisor avec health checks et restart auto - sogoway: gateway HTTP, auth JWT, routing par hostname - sogoms-db: microservice MariaDB avec pool par application - Protocol IPC Unix socket JSON length-prefixed - Config YAML multi-application (prokov) - Deploy script pour container Alpine gw3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
36
config/scenarios/prokov/projects/delete.yaml
Normal file
36
config/scenarios/prokov/projects/delete.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
# Scénario: Supprimer un projet
|
||||
name: projects_delete
|
||||
version: "1.0"
|
||||
description: Supprime un projet (cascade sur sous-projets et tâches)
|
||||
|
||||
input:
|
||||
required:
|
||||
- id
|
||||
validation:
|
||||
id:
|
||||
type: int
|
||||
|
||||
steps:
|
||||
- id: check_project
|
||||
service: db
|
||||
action: query_one
|
||||
params:
|
||||
query: "SELECT id FROM projects WHERE id = ? AND user_id = ?"
|
||||
args: ["{{input.id}}", "{{auth.user_id}}"]
|
||||
on_error: abort
|
||||
error_message: "Projet non trouvé"
|
||||
error_status: 404
|
||||
|
||||
- id: delete_project
|
||||
service: db
|
||||
action: delete
|
||||
params:
|
||||
table: projects
|
||||
where:
|
||||
id: "{{input.id}}"
|
||||
|
||||
output:
|
||||
status: 200
|
||||
body:
|
||||
success: true
|
||||
message: "Projet supprimé"
|
||||
Reference in New Issue
Block a user