|
58 | 58 | }) |
59 | 59 | .WithName("AnalyzeText") |
60 | 60 | .Produces<AnalyzeTextResponse>(StatusCodes.Status200OK) |
61 | | - .Produces(StatusCodes.Status400BadRequest) |
62 | | - .WithOpenApi(); |
| 61 | + .Produces(StatusCodes.Status400BadRequest); |
63 | 62 |
|
64 | 63 | app.MapPost("/text/shingles", ([FromBody] ExtractShinglesRequest req, IShingleService svc) => |
65 | 64 | { |
|
78 | 77 | }) |
79 | 78 | .WithName("ExtractShingles") |
80 | 79 | .Produces<ExtractShinglesResponse>(StatusCodes.Status200OK) |
81 | | - .Produces(StatusCodes.Status400BadRequest) |
82 | | - .WithOpenApi(); |
| 80 | + .Produces(StatusCodes.Status400BadRequest); |
83 | 81 |
|
84 | 82 |
|
85 | 83 | app.MapPost("/file/analyze", async (HttpRequest httpRequest, IAnalyzeFileService svc) => |
|
131 | 129 | .Accepts<IFormFile>("multipart/form-data") |
132 | 130 | .Produces<AnalyzeTextResponse>(StatusCodes.Status200OK) |
133 | 131 | .Produces(StatusCodes.Status400BadRequest) |
134 | | - .Produces(StatusCodes.Status413PayloadTooLarge) |
135 | | - .WithOpenApi(); |
| 132 | + .Produces(StatusCodes.Status413PayloadTooLarge); |
136 | 133 |
|
137 | 134 | app.MapPost("/file/shingles", async (HttpRequest httpRequest, IAnalyzeFileService svc) => |
138 | 135 | { |
|
179 | 176 | .Accepts<IFormFile>("multipart/form-data") |
180 | 177 | .Produces<ExtractShinglesResponse>(StatusCodes.Status200OK) |
181 | 178 | .Produces(StatusCodes.Status400BadRequest) |
182 | | - .Produces(StatusCodes.Status413PayloadTooLarge) |
183 | | - .WithOpenApi(); |
| 179 | + .Produces(StatusCodes.Status413PayloadTooLarge); |
184 | 180 |
|
185 | 181 | app.MapPost("/plagiarism/detect", async ([FromBody] DetectPlagiarismRequest req, IPlagiarismDetectorService svc) => |
186 | 182 | { |
|
205 | 201 | }) |
206 | 202 | .WithName("DetectPlagiarism") |
207 | 203 | .Produces<DetectPlagiarismResponse>(StatusCodes.Status200OK) |
208 | | - .Produces(StatusCodes.Status400BadRequest) |
209 | | - .WithOpenApi(); |
| 204 | + .Produces(StatusCodes.Status400BadRequest); |
210 | 205 |
|
211 | 206 | app.MapPost("/plagiarism/detect/file", async (HttpRequest httpRequest, IAnalyzeFileService fileSvc, IPlagiarismDetectorService plagiarismSvc) => |
212 | 207 | { |
|
259 | 254 | .Accepts<IFormFile>("multipart/form-data") |
260 | 255 | .Produces<DetectPlagiarismResponse>(StatusCodes.Status200OK) |
261 | 256 | .Produces(StatusCodes.Status400BadRequest) |
262 | | - .Produces(StatusCodes.Status413PayloadTooLarge) |
263 | | - .WithOpenApi(); |
| 257 | + .Produces(StatusCodes.Status413PayloadTooLarge); |
264 | 258 |
|
265 | 259 | app.MapPost("/files/compare", async (HttpRequest httpRequest, IAnalyzeFileService fileSvc) => |
266 | 260 | { |
|
319 | 313 | .Accepts<IFormFile>("multipart/form-data") |
320 | 314 | .Produces<FileComparisonResult>(StatusCodes.Status200OK) |
321 | 315 | .Produces(StatusCodes.Status400BadRequest) |
322 | | - .Produces(StatusCodes.Status413PayloadTooLarge) |
323 | | - .WithOpenApi(); |
| 316 | + .Produces(StatusCodes.Status413PayloadTooLarge); |
324 | 317 |
|
325 | 318 | app.MapPost("/health", () => Results.Ok(new { status = "Healthy" })) |
326 | 319 | .WithName("HealthCheck") |
327 | | - .Produces(StatusCodes.Status200OK) |
328 | | - .WithOpenApi(); |
| 320 | + .Produces(StatusCodes.Status200OK); |
329 | 321 |
|
330 | 322 | app.Run(); |
331 | 323 |
|
|
0 commit comments