@jtl-software/cloud-app-template-backend-dotnet
v0.2.0
Published
.NET (ASP.NET Core + FastEndpoints) backend template for JTL Platform cloud apps
Keywords
Readme
.NET Backend Template
ASP.NET Core 8 + FastEndpoints + app-token verification (JWKS)
Configuration
Copy appsettings.Local.json.example to appsettings.Local.json and add your Client ID, Secret and App ID.
Scripts
dotnet run— runs on port 3005- Swagger UI at
/swaggerin development mode
Endpoints
GET /health— reports whetherJtlPlatform:ClientId/JtlPlatform:ClientSecretare configuredPOST /verify-token— verifies an app token (Authorization: Bearer <token>) and returns its claimsPOST /graphql— proxies a GraphQL request to the JTL ERP API; verifies the app token and reads the tenant from itsurn:jtl:tenant_idclaimALL /erp-info/{tenantId}/{endpoint}— proxies a REST request to the JTL ERP API (unauthenticated; tenant comes from the URL)
