feat(developers): fix approval webhook flow and add ticket parsing service
All checks were successful
Build and Deploy / deploy (push) Successful in 16s
All checks were successful
Build and Deploy / deploy (push) Successful in 16s
Change approve endpoint from int to string ticketId to match SilverDESK GUIDs. Remove body parameter requirement so the endpoint works as a webhook target. Add DeveloperTicketParsingService to fetch and parse applicant details from ticket descriptions. Remove redundant ticket status update from ProvisioningService since SilverDESK action engine now handles SetStatus/AddNote/AddReply steps. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,15 @@ builder.Services.AddHttpClient<DeveloperApplicationService>(client =>
|
||||
client.DefaultRequestHeaders.Add("X-API-Key", apiKey);
|
||||
});
|
||||
|
||||
// HttpClient for DeveloperTicketParsingService (fetches tickets from SilverDESK)
|
||||
builder.Services.AddHttpClient<DeveloperTicketParsingService>(client =>
|
||||
{
|
||||
client.BaseAddress = new Uri(builder.Configuration["SilverDesk:BaseUrl"] ?? "https://silverdesk.silverlabs.uk");
|
||||
var apiKey = builder.Configuration["SilverDesk:ApiKey"];
|
||||
if (!string.IsNullOrEmpty(apiKey))
|
||||
client.DefaultRequestHeaders.Add("X-API-Key", apiKey);
|
||||
});
|
||||
|
||||
// Named HttpClients for provisioning
|
||||
builder.Services.AddHttpClient("SilverDesk", client =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user