Skip to content

Commit

Permalink
✨ Fixing merge issues and improving approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontaylordev committed Jun 28, 2023
1 parent 3847651 commit eab4ce1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 110 deletions.
2 changes: 1 addition & 1 deletion src/WebUI/ClientApp/src/app/web-api-client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.17.0.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------

Expand Down
4 changes: 1 addition & 3 deletions src/WebUI/ConfigureServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Mvc;
using ZymLabs.NSwag.FluentValidation;

namespace CleanArchitecture.WebUI;
namespace Microsoft.Extensions.DependencyInjection;

public static class ConfigureServices
{
Expand All @@ -29,8 +29,6 @@ public static IServiceCollection AddWebUIServices(this IServiceCollection servic
return new FluentValidationSchemaProcessor(provider, validationRules, loggerFactory);
});

services.AddEndpointsApiExplorer();

// Customise default API behaviour
services.Configure<ApiBehaviorOptions>(options =>
options.SuppressModelStateInvalidFilter = true);
Expand Down
60 changes: 0 additions & 60 deletions src/WebUI/Infrastructure/AbstractEndpoint.cs

This file was deleted.

16 changes: 0 additions & 16 deletions src/WebUI/OidcConfiguration/OidcConfiguration.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/WebUI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CleanArchitecture.Infrastructure.Persistence;
using CleanArchitecture.WebUI;

var builder = WebApplication.CreateBuilder(args);

Expand Down Expand Up @@ -39,12 +38,6 @@
settings.DocumentPath = "/api/specification.json";
});

app.UseRouting();

app.UseAuthentication();
app.UseIdentityServer();
app.UseAuthorization();

app.MapControllerRoute(
name: "default",
pattern: "{controller}/{action=Index}/{id?}");
Expand Down
31 changes: 8 additions & 23 deletions src/WebUI/wwwroot/api/specification.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"x-generator": "NSwag v13.17.0.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v13.0.0.0))",
"x-generator": "NSwag v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v10.0.0.0))",
"openapi": "3.0.0",
"info": {
"title": "CleanArchitecture API",
Expand Down Expand Up @@ -198,12 +198,7 @@
}
}
}
},
"security": [
{
"JWT": []
}
]
}
}
},
"/api/TodoItems/{id}": {
Expand Down Expand Up @@ -302,12 +297,7 @@
"200": {
"description": ""
}
},
"security": [
{
"JWT": []
}
]
}
}
}
},
Expand Down Expand Up @@ -352,7 +342,7 @@
"priorityLevels": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PriorityLevelDto"
"$ref": "#/components/schemas/LookupDto"
}
},
"lists": {
Expand All @@ -363,15 +353,15 @@
}
}
},
"PriorityLevelDto": {
"LookupDto": {
"type": "object",
"additionalProperties": false,
"properties": {
"value": {
"id": {
"type": "integer",
"format": "int32"
},
"name": {
"title": {
"type": "string",
"nullable": true
}
Expand Down Expand Up @@ -513,10 +503,5 @@
]
}
}
},
"security": [
{
"JWT": []
}
]
}
}

0 comments on commit eab4ce1

Please sign in to comment.