We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2075c91 commit 42e4a52Copy full SHA for 42e4a52
1 file changed
Templates/CSharp/Requests/IMethodRequest.cs.tt
@@ -9,22 +9,6 @@ var entityName = method.Class.Name.ToCheckedCase();
9
var isFunction = method.IsFunction;
10
var isAction = !isFunction;
11
var isComposable = method.IsComposable;
12
-var httpMethods = new System.Collections.Generic.List<string>();
13
-
14
-// Set the supported verbs based on whether this is function, composable function, or an action.
15
-if (isFunction)
16
-{
17
- httpMethods.Add("GET");
18
- if (isComposable)
19
- {
20
- httpMethods.Add("PATCH");
21
- httpMethods.Add("PUT");
22
- }
23
-}
24
-else
25
26
- httpMethods.Add("POST");
27
28
29
var methodName = method.Name.Substring(method.Name.IndexOf('.') + 1).ToCheckedCase();
30
var requestType = entityName + methodName + "Request";
0 commit comments