This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +9
-0
lines changed
docs/reference/csharp/api Expand file tree Collapse file tree 9 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ var api = Nitric.Api("main");
116
116
api .Delete (" /hello/:name" , context => {
117
117
var body = context .Req .Json <Dictionary <string , string >>();
118
118
// parse, validate and store the request payload...
119
+ return context ;
119
120
});
120
121
121
122
Nitric .Run ();
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ var api = Application.Api("main");
116
116
api .Patch (" /hello/:name" , context => {
117
117
var body = context .Req .Json <Dictionary <string , string >>();
118
118
// parse, validate and store the request payload...
119
+ return context ;
119
120
});
120
121
121
122
Application .Run ();
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ var api = Application.Api("main");
116
116
api .Post (" /hello/:name" , context => {
117
117
var body = context .Req .Json <Dictionary <string , string >>();
118
118
// parse, validate and store the request payload...
119
+ return context ;
119
120
});
120
121
121
122
Application .Run ();
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ var api = Application.Api("main");
116
116
api .Put (" /hello/:name" , context => {
117
117
var body = context .Req .Json <Dictionary <string , string >>();
118
118
// parse, validate and store the request payload...
119
+ return context ;
119
120
});
120
121
121
122
Application .Run ();
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ var route = Application.Api("main").Route("/customers");
127
127
route .All (context => {
128
128
var body = context .Req .Json <Dictionary <string , string >>();
129
129
// parse, validate and store the request payload...
130
+ return context ;
130
131
});
131
132
132
133
Application .Run ();
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ var route = Application.Api("main").Route("/customers");
112
112
route .Delete (context => {
113
113
var body = context .Req .Json <Dictionary <string , string >>();
114
114
// parse, validate and store the request payload...
115
+ return context ;
115
116
});
116
117
117
118
Application .Run ();
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ var api = Application.Api("main").Route("/customers");
112
112
route .Patch (context => {
113
113
var body = context .Req .Json <Dictionary <string , string >>();
114
114
// parse, validate and store the request payload...
115
+ return context ;
115
116
});
116
117
117
118
Application .Run ();
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ var route = Application.Api("main").Route("/customers");
112
112
route .Post (context => {
113
113
var body = context .Req .Json <Dictionary <string , string >>();
114
114
// parse, validate and store the request payload...
115
+ return context ;
115
116
});
116
117
117
118
Application .Run ();
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ var route = Application.Api("main").Route("/customers");
111
111
route .Put (context => {
112
112
var body = context .Req .Json <Dictionary <string , string >>();
113
113
// parse, validate and store the request payload...
114
+ return context ;
114
115
});
115
116
116
117
Application .Run ();
You can’t perform that action at this time.
0 commit comments