Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 003e0c4

Browse files
committed
Add return statement to examples
1 parent 623f889 commit 003e0c4

34 files changed

+34
-0
lines changed

docs/reference/csharp/api/api-delete.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var api = Nitric.Api("main");
116116
api.Delete("/hello/:name", context => {
117117
var body = context.Req.Json<Dictionary<string, string>>();
118118
// parse, validate and store the request payload...
119+
return context;
119120
});
120121

121122
Nitric.Run();

docs/reference/csharp/api/api-patch.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var api = Application.Api("main");
116116
api.Patch("/hello/:name", context => {
117117
var body = context.Req.Json<Dictionary<string, string>>();
118118
// parse, validate and store the request payload...
119+
return context;
119120
});
120121

121122
Application.Run();

docs/reference/csharp/api/api-post.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var api = Application.Api("main");
116116
api.Post("/hello/:name", context => {
117117
var body = context.Req.Json<Dictionary<string, string>>();
118118
// parse, validate and store the request payload...
119+
return context;
119120
});
120121

121122
Application.Run();

docs/reference/csharp/api/api-put.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ var api = Application.Api("main");
116116
api.Put("/hello/:name", context => {
117117
var body = context.Req.Json<Dictionary<string, string>>();
118118
// parse, validate and store the request payload...
119+
return context;
119120
});
120121

121122
Application.Run();

docs/reference/csharp/api/api-route-all.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ var route = Application.Api("main").Route("/customers");
127127
route.All(context => {
128128
var body = context.Req.Json<Dictionary<string, string>>();
129129
// parse, validate and store the request payload...
130+
return context;
130131
});
131132

132133
Application.Run();

docs/reference/csharp/api/api-route-delete.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ var route = Application.Api("main").Route("/customers");
112112
route.Delete(context => {
113113
var body = context.Req.Json<Dictionary<string, string>>();
114114
// parse, validate and store the request payload...
115+
return context;
115116
});
116117

117118
Application.Run();

docs/reference/csharp/api/api-route-patch.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ var api = Application.Api("main").Route("/customers");
112112
route.Patch(context => {
113113
var body = context.Req.Json<Dictionary<string, string>>();
114114
// parse, validate and store the request payload...
115+
return context;
115116
});
116117

117118
Application.Run();

docs/reference/csharp/api/api-route-post.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ var route = Application.Api("main").Route("/customers");
112112
route.Post(context => {
113113
var body = context.Req.Json<Dictionary<string, string>>();
114114
// parse, validate and store the request payload...
115+
return context;
115116
});
116117

117118
Application.Run();

docs/reference/csharp/api/api-route-put.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ var route = Application.Api("main").Route("/customers");
111111
route.Put(context => {
112112
var body = context.Req.Json<Dictionary<string, string>>();
113113
// parse, validate and store the request payload...
114+
return context;
114115
});
115116

116117
Application.Run();

docs/reference/csharp/v0/api/api-delete.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ var api = Nitric.Api("main");
115115
api.Delete("/hello/:name", context => {
116116
var body = context.Req.Json<Dictionary<string, string>>();
117117
// parse, validate and store the request payload...
118+
return context;
118119
});
119120

120121
Nitric.Run();

0 commit comments

Comments
 (0)