Code · 84 lines · 1849 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84@JsonBodyProviderTest_HostAddress = http://localhost:5129

### Original test – alle typen

POST {{JsonBodyProviderTest_HostAddress}}/First/Test
Content-Type: application/json

{
  "EventName": "Alphons",
  "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",
  "FirstChar": "Z",
  "Ernie" : 100000000,
  "Man": 32000,
  "Dater" : "2026-07-13",
  "Timer" : "12:34:56"
}

### Example 1 – Classic user creation

POST {{JsonBodyProviderTest_HostAddress}}/api/users
Content-Type: application/json

{
  "Name": "Lisa van Dijk",
  "Age": 34,
  "Email": "lisa@example.com",
  "Roles": ["editor", "reviewer"],
  "IsActive": true
}

### Example 2 – Order with items

POST {{JsonBodyProviderTest_HostAddress}}/api/orders
Content-Type: application/json

{
  "OrderNumber": "ORD-2025-78412",
  "OrderDate": "2025-06-18",
  "TotalAmount": 1249.95,
  "ProductCodes": ["PROD-A42", "PROD-B17", "PROD-C09"],
  "CustomerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "Remark": ""
}

### Example 3 – Analytics event

POST {{JsonBodyProviderTest_HostAddress}}/api/events
Content-Type: application/json

{
  "EventName": "purchase_completed",
  "UserId": "usr_9k3j2p8x",
  "Timestamp": "2025-06-18T14:22:09Z",
  "Value": 1,
  "Properties": {
    "category": "electronics",
    "source": "newsletter"
  },
  "IsConversion": true,
  "CampaignId": null
}

### Example 4 – Minimal patch (only changed fields)

PATCH {{JsonBodyProviderTest_HostAddress}}/api/items/3fa85f64-5717-4562-b3fc-2c963f66afa6
Content-Type: application/json

{
  "Title": "Updated task name",
  "Priority": 3
}