Dragon Guard WMS is a .NET 8 ASP.NET Core REST API purpose-built for warehouse operations driven by handheld devices. It provides the back-end for scanning, receiving, shipping, and inventory workflows that field workers execute on the warehouse floor, while simultaneously exposing integration endpoints that keep your ERP system in sync. Every resource is scoped to a tenant (company), so a single deployment safely serves multiple independent warehouse clients with complete data isolation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_BACK/llms.txt
Use this file to discover all available pages before exploring further.
Architecture Overview
Dragon Guard follows a layered architecture within a single deployable ASP.NET Core Web API project. The runtime entry point isProgram.cs, which wires up all middleware, dependency-injection registrations, and the EF Core auto-migration that runs on every startup.
| Layer | Directory | Responsibility |
|---|---|---|
| HTTP surface | Controllers/ | Route definitions and request/response mapping. Most controllers inherit BaseController → ApiControllerBase, which applies [Authorize] and surfaces the authenticated user’s claims. |
| Business logic | Services/ | Scoped service classes that own domain rules, validation, and orchestration. |
| Data contracts | DTOs/ | Request and response types grouped by feature namespace — never directly exposing entity objects. |
| Domain model | Entities/ | EF Core-mapped classes that represent database tables. |
| Data access | Data/ | WmsDbContext (EF Core) for most WMS modules; IDbConnectionFactory (Dapper) for authentication stored procedures. |
| Auth plumbing | Repository/ | IAuthRepository for credential lookups and IJwtService for token generation. |
| Shared utilities | Common/ | Pagination request/response types and cross-cutting helpers. |
Key Capabilities
Receiving & Inbound
Manage inbound document flows, goods receipt confirmations, and bin put-away for handheld devices. Receiving workflows are tenant-scoped and feed directly into stock and inventory movement records.
Shipments & Outbound
Create, confirm, and track outbound shipments and pick operations. Pick headers, pick lines, and document sequences are all first-class API resources.
RFID Tag Management
Full RFID lifecycle: tag registration, issuance, assignment, scan auditing, duplicate-read policy enforcement, unknown-tag handling, ZPL label printing, and batch tag ordering — all surfaced as REST endpoints.
ERP Integration
Native connectors for Grupo MAS (with durable retry and released-work polling) and Microsoft Business Central. An API-key-authenticated
/api/v1/integration/* surface lets ERP systems push catalog sync and document acknowledgments without a user JWT.Supreme Admin
A privileged
supreme role accessed via /api/supreme/* manages tenants, subscription plans, plan-suspension enforcement, and cross-tenant reporting — all protected behind super-admin claims.Audit Logging
Operational execution logs capture every significant workflow event per tenant. A dedicated
IOperationalExecutionLogService writes structured records that can be queried for compliance and debugging.Project Structure
External Dependencies
The project references the following NuGet packages (seeWms.Api.csproj):
| Package | Version | Purpose |
|---|---|---|
BCrypt.Net-Next | 4.1.0 | Password hashing and verification |
ClosedXML | 0.105.0 | Excel report generation |
Dapper | 2.1.72 | Lightweight SQL queries and stored-procedure calls |
Microsoft.AspNetCore.Authentication.JwtBearer | 8.0.0 | JWT Bearer middleware and token validation |
Microsoft.Data.SqlClient | 7.0.0 | Low-level SQL Server connectivity |
Microsoft.EntityFrameworkCore.SqlServer | 8.0.23 | ORM for WMS domain entities |
Swashbuckle.AspNetCore | 6.6.2 | Swagger / OpenAPI documentation UI |
Next Steps
Quickstart
Configure the API, run it locally, and make your first authenticated warehouse call in under 5 minutes.
Authentication
Learn how JWT login, handheld device login, API-key integration auth, and multi-tenant company resolution work together.