-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding default Json formatters for requests
- Loading branch information
Showing
6 changed files
with
157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/WebJobs.Script.Tests.Integration/TestScripts/CSharp/HttpTrigger-Model-v2/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"bindings": [ | ||
{ | ||
"type": "httpTrigger", | ||
"name": "payload", | ||
"direction": "in", | ||
"methods": [ "post" ], | ||
"authLevel": "anonymous" | ||
}, | ||
{ | ||
"type": "http", | ||
"name": "$return", | ||
"direction": "out" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
test/WebJobs.Script.Tests.Integration/TestScripts/CSharp/HttpTrigger-Model-v2/run.csx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
| ||
public static TestPayload Run(TestPayload payload) | ||
{ | ||
return payload; | ||
} | ||
|
||
public class TestPayload | ||
{ | ||
public CustomType Custom { get; set; } | ||
|
||
public IEnumerable<CustomType> CustomEnumerable { get; set; } | ||
} | ||
|
||
public class CustomType | ||
{ | ||
public string CustomProperty { get; set; } | ||
} |
16 changes: 16 additions & 0 deletions
16
test/WebJobs.Script.Tests.Integration/TestScripts/CSharp/HttpTrigger-Model/function.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"bindings": [ | ||
{ | ||
"type": "httpTrigger", | ||
"name": "payload", | ||
"direction": "in", | ||
"methods": [ "post" ], | ||
"authLevel": "anonymous" | ||
}, | ||
{ | ||
"type": "http", | ||
"name": "$return", | ||
"direction": "out" | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
test/WebJobs.Script.Tests.Integration/TestScripts/CSharp/HttpTrigger-Model/run.csx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
| ||
public static TestPayload Run(TestPayload payload) | ||
{ | ||
return payload; | ||
} | ||
|
||
public class TestPayload | ||
{ | ||
public CustomType Custom { get; set; } | ||
|
||
public IEnumerable<CustomType> CustomEnumerable { get; set; } | ||
} | ||
|
||
public class CustomType | ||
{ | ||
public string CustomProperty { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters