-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dee07a2
commit 88acee8
Showing
68 changed files
with
52 additions
and
1,267 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+16 Bytes
(100%)
src/api gateways/DevStore.Bff.Compras/Configuration/DependencyInjectionConfig.cs
Binary file not shown.
Binary file modified
BIN
+28 Bytes
(100%)
src/api gateways/DevStore.Bff.Compras/Configuration/GrpcConfig.cs
Binary file not shown.
Binary file removed
BIN
-9.95 KB
src/api gateways/DevStore.Bff.Compras/Controllers/CarrinhoController.cs
Binary file not shown.
Binary file modified
BIN
+118 Bytes
(100%)
src/api gateways/DevStore.Bff.Compras/Controllers/PedidoController.cs
Binary file not shown.
Binary file modified
BIN
+216 Bytes
(110%)
src/api gateways/DevStore.Bff.Compras/DevStore.Bff.Compras.csproj
Binary file not shown.
Binary file modified
BIN
+6 Bytes
(100%)
src/api gateways/DevStore.Bff.Compras/Extensions/AppServicesSettings.cs
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-80 Bytes
(97%)
src/api gateways/DevStore.Bff.Compras/Services/CatalogService.cs
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(99%)
src/api gateways/DevStore.Bff.Compras/Services/ClienteService.cs
Binary file not shown.
Binary file modified
BIN
-148 Bytes
(97%)
src/api gateways/DevStore.Bff.Compras/Services/PedidoService.cs
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+14 Bytes
(100%)
src/api gateways/DevStore.Bff.Compras/Services/gRPC/CarrinhoGrpcService.cs
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/services/DevStore.Carrinho.API/Configuration/DependencyInjectionConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
using DevStore.Carrinho.API.Data; | ||
using DevStore.ShoppingCart.API.Data; | ||
using DevStore.WebAPI.Core.Usuario; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace DevStore.Carrinho.API.Configuration | ||
namespace DevStore.ShoppingCart.API.Configuration | ||
{ | ||
public static class DependencyInjectionConfig | ||
{ | ||
public static void RegisterServices(this IServiceCollection services) | ||
{ | ||
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); | ||
services.AddScoped<IAspNetUser, AspNetUser>(); | ||
services.AddScoped<CarrinhoContext>(); | ||
services.AddScoped<Data.ShoppingCartContext>(); | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
src/services/DevStore.Carrinho.API/Configuration/MessageBusConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.OpenApi.Models; | ||
using System; | ||
|
||
namespace DevStore.Carrinho.API.Configuration | ||
namespace DevStore.ShoppingCart.API.Configuration | ||
{ | ||
public static class SwaggerConfig | ||
{ | ||
|
@@ -13,15 +13,15 @@ public static void AddSwaggerConfiguration(this IServiceCollection services) | |
{ | ||
c.SwaggerDoc("v1", new OpenApiInfo() | ||
{ | ||
Title = "DevStore Enterprise Carrinho API", | ||
Description = "Esta API faz parte do curso ASP.NET Core Enterprise Applications.", | ||
Contact = new OpenApiContact() {Name = "Eduardo Pires", Email = "[email protected]"}, | ||
License = new OpenApiLicense() {Name = "MIT", Url = new Uri("https://opensource.org/Licenses/MIT")} | ||
Title = "DevStore Enterprise Shopping Cart API", | ||
Description = "This API is part of online course ASP.NET Core Enterprise Applications.", | ||
Contact = new OpenApiContact() { Name = "Eduardo Pires", Email = "[email protected]" }, | ||
License = new OpenApiLicense() { Name = "MIT", Url = new Uri("https://opensource.org/Licenses/MIT") } | ||
}); | ||
|
||
c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme | ||
{ | ||
Description = "Insira o token JWT desta maneira: Bearer {seu token}", | ||
Description = "Add you JWT token: Bearer {token}", | ||
Name = "Authorization", | ||
Scheme = "Bearer", | ||
BearerFormat = "JWT", | ||
|
171 changes: 0 additions & 171 deletions
171
src/services/DevStore.Carrinho.API/Controllers/CarrinhoController.cs
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
src/services/DevStore.Carrinho.API/Data/CarrinhoContext.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.