How weigandf/notarization-objecthash works
Main Components
a. API Layer
• Two main controllers: ObjectHashController and ObjectRedactionController
• Their respective endpoints
b. Service Layer
• Four key services:
• ObjectHashImplementation
• ObjectRedactionImplementation
• EvaluateCommandsImplementation
• GenerateSaltsImplementation
c. Models Layer
• Request/Response Models
• Core Domain Models (ObjectHash and ObjectRedaction)
d. Utility Components
• Exception Handling
• Hex Conversion
• JToken Extensions
[Client Applications]
• ↓
[API Gateway/Load Balancer]
• ↓
[ASP.NET Core Web API]
• Controllers Layer
• Service Layer
• Models Layer
• Utils Layer
Specific Implementation Details
• Rectangles: Major system components
• Rounded rectangles: Controllers
• Hexagons: Services
• Ovals: Utility classes
• Blue: API/Controller layer
• Green: Service layer
• Yellow: Models
• Gray: Utilities
• Red: Exception handling components
Flow Representation
Following flows:
Client → API Controllers
• ↓
Request Models → Service Layer
• ↓
Service Implementation → Domain Models
• ↓
Response Models → Client
Important Elements to Highlight
a. Exception Handling Flow:
• How BaseException, BadRequestException, and NotFoundException are used
• ExceptionHandlerFilterAttribute in the flow
b. Model Transformations:
• Relationship between request/response models
• How ObjectHash and ObjectRedaction models interact with their respective services
Deployment Aspects
Deployment-related components:
• Docker container (reference Dockerfile)
• GitHub Actions workflows (test-staging, test-production, release-production)
For this specific project, focus on:
The testing and deployment pipeline
• Any abbreviations used
This will provide a comprehensive view of the system while maintaining clarity and usefulness for development and maintenance purposes.