How owasp/crapi works
crAPI is a deliberately vulnerable, microservices-based vehicle-owner application for API security education. Its user journey spans account access, vehicle and profile management, workshop service requests and reports, shopping, and community features; a chatbot/MCP service adds conversational access to application context. The map includes those documented product areas and the gateway, but several service-to-service and web-to-backend links cannot be verified from the sampled excerpts, so they are omitted or marked dashed with no evidence path.
Main entry points: urls.py Workshop API · main.go API gateway · AuthController.java Authentication API · routes.go Community API
Components 21
Web experience
- Web application
services/web/src/index.tsx - User actions
services/web/src/actions/userActions.ts - Service report view
services/web/src/containers/serviceReport/serviceReport.tsx - Mechanic request view
services/web/src/components/mechanicServiceRequest/mechanicServiceRequest.tsx
Identity and vehicles
- Authentication API
services/identity/src/main/java/com/crapi/controller/AuthController.java - User services
services/identity/src/main/java/com/crapi/service/UserService.java - User records
services/identity/src/main/java/com/crapi/entity/User.java - Profile API
services/identity/src/main/java/com/crapi/controller/ProfileController.java - Profile services
services/identity/src/main/java/com/crapi/service/ProfileService.java - Vehicle API
services/identity/src/main/java/com/crapi/service/VehicleService.java
Workshop services
- Workshop API
services/workshop/crapi/urls.py - Mechanic requests
services/workshop/crapi/mechanic/models.py - Shop and orders
services/workshop/crapi/shop/models.py - Workshop users
services/workshop/crapi/user/models.py
Community
- Community API
services/community/api/router/routes.go - Posts and coupons
services/community/api/controllers/post_controller.go
Chat assistant
- Chat API
services/chatbot/src/chatbot/chat_api.py - Chat sessions
services/chatbot/src/chatbot/session_service.py - MCP tools
services/chatbot/src/mcpserver/server.py
Other components
- Vehicle owner
- API gateway
services/gateway-service/main.go
Connections 21
- Vehicle owner → Web application: uses
README.md - Web application → API gateway: requests API
- API gateway → Authentication API: routes to
- API gateway → Workshop API: routes to
- API gateway → Community API: routes to
- Web application → User actions: dispatches
- User actions → Service report view: loads data
services/web/src/containers/serviceReport/serviceReport.tsx - Service report view → Mechanic request view: related report UI
- Authentication API → User services: calls
services/identity/src/main/java/com/crapi/controller/AuthController.java - User services → User records: uses
services/identity/src/main/java/com/crapi/service/UserService.java - Profile API → Profile services: uses
services/identity/src/main/java/com/crapi/controller/ProfileController.java - Vehicle owner → Authentication API: signs up
README.md - Vehicle owner → Vehicle API: manages vehicle
- Workshop API → Mechanic requests: serves requests
- Workshop API → Shop and orders: serves orders
- Workshop API → Workshop users: uses records
- Vehicle owner → Community API: uses community
- Community API → Posts and coupons: routes requests
services/community/api/router/routes.go - MCP tools → Authentication API: requests API key
services/chatbot/src/mcpserver/server.py - MCP tools → Community API: fetches posts
services/chatbot/src/mcpserver/server.py - Chat API → Chat sessions: uses sessions