Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement and test HTTP verbs other than POST for dynamic API controllers. #142
You can tell me where to implement these, I will try and do a pull request in the case I am successful...
I was looking at how to dynamically add the attribute and happened to find your question on the same topic. Did you find any solution ?
Implementation notes (will be documented):
DynamicApiControllerBuilder .ForAll<IApplicationService>(typeof(MyApplicationModule).Assembly, "app") .Build(); DynamicApiControllerBuilder .For<ITestAppService>("app/test") .ForMethod("MySpecialMethod") .WithVerb(HttpVerb.Put) .Build();
DynamicApiControllerBuilder .ForAll<IApplicationService>(typeof(MyApplicationModule).Assembly, "app") .WithConventionalVerbs() .Build();
Generation of a Get method with parameters on a service seems to be broken.
Sample of generated code:
The data option should be replaced with the params option. See this SO question