# Test API pripojeniacurl-H"Private-Token: ${GITLAB_TOKEN}"\"${GITLAB_URL}/api/v4/user"# Test webhook (z GitPulse)curl-XPOSThttp://localhost:8000/api/v1/webhooks/test
sequenceDiagram
participant GL as GitLab
participant WH as Webhook Handler
participant Q as Redis Queue
participant W as Worker
participant DB as Database
GL->>WH: POST /webhooks/gitlab
WH->>WH: Verify signature
WH->>Q: Enqueue event
WH-->>GL: 200 OK
W->>Q: Dequeue event
W->>W: Process event
W->>DB: Store event
W->>W: Calculate metrics
{"object_kind":"push","event_name":"push","ref":"refs/heads/main","commits":[{"id":"abc123...","message":"feat: add new feature","author":{"name":"John Doe","email":"john@example.com"},"added":["file1.py"],"modified":["file2.py"],"removed":[]}]}