From a604e9d91fbb1c18580ffd7ead6860cc75fdf717 Mon Sep 17 00:00:00 2001 From: Daniel Hufnagl Date: Mon, 18 Nov 2024 15:16:08 +0100 Subject: [PATCH] GetFull --- .../Generators/ControllerGenerator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs b/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs index fffc061..bf8be06 100644 --- a/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs +++ b/src/Generators/Web/Codelisk.Controller.Generator/Generators/ControllerGenerator.cs @@ -7,6 +7,7 @@ using Codelisk.GeneratorAttributes.WebAttributes.Dto; using Codelisk.GeneratorAttributes.WebAttributes.HttpMethod; using Codelisk.GeneratorAttributes.WebAttributes.Manager; +using Codelisk.GeneratorShared.Constants; using Controller.Generator.CodeBuilders; using Foundation.Crawler.Crawlers; using Foundation.Crawler.Extensions; @@ -122,6 +123,7 @@ ClassDeclarationSyntax baseController result .AddMethod($"GetFull", Accessibility.Public) .AddParameter("Guid", "id") + .AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetFull}\")]") .MakeAsync() .WithReturnTypeTask(dto.GetFullModelName()) .WithBody(x => @@ -134,6 +136,7 @@ ClassDeclarationSyntax baseController result .AddMethod($"GetAllFull", Accessibility.Public) .MakeAsync() + .AddAttribute($"[{Constants.HttpGetAttribute}(\"{ApiUrls.GetAllFull}\")]") .WithReturnTypeTaskList(dto.GetFullModelName()) .WithBody(x => {