sprints work
This commit is contained in:
@@ -14,9 +14,9 @@ public static class FidelityEndpoints
|
||||
// POST /api/v1/scan/analyze?fidelity={level}
|
||||
group.MapPost("/analyze", async (
|
||||
[FromBody] AnalysisRequest request,
|
||||
[FromQuery] FidelityLevel fidelity = FidelityLevel.Standard,
|
||||
IFidelityAwareAnalyzer analyzer,
|
||||
CancellationToken ct) =>
|
||||
CancellationToken ct,
|
||||
[FromQuery] FidelityLevel fidelity = FidelityLevel.Standard) =>
|
||||
{
|
||||
var result = await analyzer.AnalyzeAsync(request, fidelity, ct);
|
||||
return Results.Ok(result);
|
||||
@@ -28,9 +28,9 @@ public static class FidelityEndpoints
|
||||
// POST /api/v1/scan/findings/{findingId}/upgrade
|
||||
group.MapPost("/findings/{findingId:guid}/upgrade", async (
|
||||
Guid findingId,
|
||||
[FromQuery] FidelityLevel target = FidelityLevel.Deep,
|
||||
IFidelityAwareAnalyzer analyzer,
|
||||
CancellationToken ct) =>
|
||||
CancellationToken ct,
|
||||
[FromQuery] FidelityLevel target = FidelityLevel.Deep) =>
|
||||
{
|
||||
var result = await analyzer.UpgradeFidelityAsync(findingId, target, ct);
|
||||
return result.Success
|
||||
|
||||
@@ -225,17 +225,17 @@ internal static class ReachabilityStackEndpoints
|
||||
return new EntrypointDto(
|
||||
Name: entrypoint.Name,
|
||||
Type: entrypoint.Type.ToString(),
|
||||
File: entrypoint.File,
|
||||
File: entrypoint.Location,
|
||||
Description: entrypoint.Description);
|
||||
}
|
||||
|
||||
private static CallSiteDto MapCallSiteToDto(CallSite site)
|
||||
{
|
||||
return new CallSiteDto(
|
||||
Method: site.Method,
|
||||
Type: site.ContainingType,
|
||||
File: site.File,
|
||||
Line: site.Line,
|
||||
Method: site.MethodName,
|
||||
Type: site.ClassName,
|
||||
File: site.FileName,
|
||||
Line: site.LineNumber,
|
||||
CallType: site.Type.ToString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user