'use client'
import { ApiEndpoint, CodeBlock } from '@/components/DevPortalLayout'
export function OnboardingSection() {
return (
<>
Onboarding
Initialisierung aus Firmenprofil und Vollstaendigkeitspruefung.
{`curl -X POST "https://api.breakpilot.io/sdk/v1/iace/projects/proj_a1b2c3d4/init-from-profile" \\
-H "Authorization: Bearer YOUR_API_KEY"`}
Response (200 OK)
{`{
"success": true,
"data": {
"initialized_fields": ["manufacturer", "description", "machine_type"],
"suggested_regulations": ["machinery_regulation", "low_voltage", "emc"],
"message": "Projekt aus Firmenprofil initialisiert. 3 Felder uebernommen."
}
}`}
{`curl -X POST "https://api.breakpilot.io/sdk/v1/iace/projects/proj_a1b2c3d4/completeness-check" \\
-H "Authorization: Bearer YOUR_API_KEY"`}
Response (200 OK)
{`{
"success": true,
"data": {
"score": 72,
"total_gates": 25,
"passed_gates": 18,
"gates": [
{ "id": "G01", "name": "Maschinenidentifikation", "status": "passed" },
{ "id": "G02", "name": "Komponentenliste", "status": "passed" },
{ "id": "G03", "name": "Regulatorische Klassifizierung", "status": "passed" },
{ "id": "G04", "name": "Gefahrenanalyse", "status": "warning", "message": "3 Gefahren ohne Massnahmen" },
{ "id": "G05", "name": "Risikobewertung", "status": "failed", "message": "5 Gefahren nicht bewertet" }
]
}
}`}
>
)
}