More parameter types example
252c2ef578ac7bed463b806d227bf42325404d5b
2 files changed
JsonBodyProviderTest/Controllers/FirstController.csJsonBodyProviderTest/JsonBodyProviderTest.http
diff --git a/JsonBodyProviderTest/Controllers/FirstController.cs b/JsonBodyProviderTest/Controllers/FirstController.cs
index 8e24ea0..8e221a7 100644
--- a/JsonBodyProviderTest/Controllers/FirstController.cs
+++ b/JsonBodyProviderTest/Controllers/FirstController.cs
@@ -7,27 +7,41 @@ public class FirstController : ControllerBase
{
[HttpPost("Test")]
public IActionResult Test(
- string EventName,
string UserId,
DateTime Timestamp,
int Value,
+ byte Bite,
double Weight,
+ decimal Price,
+ float Height,
List<int> IntList,
Dictionary<string, string> Properties,
bool isConversion,
- Guid? campaignId)
+ Guid? campaignId,
+ char FirstChar,
+ long Ernie,
+ short Man,
+ DateOnly Dater,
+ TimeOnly Timer)
{
return Ok(new
{
- EventName,
UserId,
Timestamp,
Value,
+ Bite,
Weight,
+ Price,
+ Height,
IntList,
Properties,
isConversion,
- campaignId
+ campaignId,
+ FirstChar,
+ Ernie,
+ Man,
+ Dater,
+ Timer
});
}
}
diff --git a/JsonBodyProviderTest/JsonBodyProviderTest.http b/JsonBodyProviderTest/JsonBodyProviderTest.http
index d0859f0..b1409da 100644
--- a/JsonBodyProviderTest/JsonBodyProviderTest.http
+++ b/JsonBodyProviderTest/JsonBodyProviderTest.http
@@ -8,12 +8,21 @@ Content-Type: application/json
"UserId": "alphons",
"Timestamp" : "2025-06-18T14:22:09Z",
"Value": 1,
+ "Bite": 255,
"Weight": 123.4567,
+ "Price": 98.76,
+ "Height" : 3.2,
"IntList": [ 1, 2, 3],
"Properties": {
"category": "electronics",
"source": "newsletter"
},
"isConversion": true,
- "campaignId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
+ "campaignId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
+ "FirstChar": "Z",
+ "Ernie" : 100000000,
+ "Man": 32000,
+ "Dater" : "2026-07-13",
+ "Timer" : "12:34:56"
+
}