|
1 | 1 | { |
2 | 2 | "parameters": { |
3 | 3 | "Endpoint": "{Endpoint}", |
4 | | - "farmerId": "FARMER123", |
5 | | - "applicationDataId": "APPLICATION123", |
| 4 | + "farmerId": "Farmer123", |
| 5 | + "applicationDataId": "Application123", |
6 | 6 | "api-version": "2021-03-31-preview", |
7 | 7 | "applicationData": { |
8 | | - "source": "Manual", |
9 | | - "name": "Application data for North Farm", |
10 | | - "description": "some description", |
11 | | - "status": "Active", |
12 | | - "operationStartDateTime": "2021-02-25T16:57:04Z", |
13 | | - "operationEndDateTime": "2021-02-27T10:13:06Z", |
14 | | - "operationModifiedDateTime": "2021-02-28T11:12:12Z", |
15 | | - "operationBoundaryId": "APPLICATIONOPBOUNDARY1", |
16 | | - "associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY", |
17 | | - "area": { |
18 | | - "unit": "acre", |
19 | | - "value": 60 |
20 | | - }, |
21 | | - "totalMaterial": { |
22 | | - "unit": "kilos", |
23 | | - "value": 9 |
24 | | - }, |
25 | | - "avgMaterial": { |
26 | | - "unit": "kilosperacre", |
27 | | - "value": 0.15 |
28 | | - }, |
29 | 8 | "applicationProductDetails": [ |
30 | 9 | { |
31 | | - "productName": "POTASHVAR1", |
| 10 | + "productName": "Product123", |
32 | 11 | "isCarrier": false, |
33 | | - "totalMaterial": { |
34 | | - "unit": "kilos", |
35 | | - "value": 4 |
36 | | - }, |
37 | 12 | "avgMaterial": { |
38 | 13 | "unit": "kilosperacre", |
39 | | - "value": 0.2 |
| 14 | + "value": 0.15 |
| 15 | + }, |
| 16 | + "totalMaterial": { |
| 17 | + "unit": "kilos", |
| 18 | + "value": 9 |
40 | 19 | } |
41 | 20 | } |
42 | 21 | ], |
| 22 | + "avgMaterial": { |
| 23 | + "unit": "kilosperacre", |
| 24 | + "value": 0.15 |
| 25 | + }, |
| 26 | + "totalMaterial": { |
| 27 | + "unit": "kilos", |
| 28 | + "value": 9 |
| 29 | + }, |
| 30 | + "area": { |
| 31 | + "unit": "acre", |
| 32 | + "value": 60 |
| 33 | + }, |
| 34 | + "source": "Manual", |
| 35 | + "operationModifiedDateTime": "2021-02-25T16:57:04Z", |
| 36 | + "operationStartDateTime": "2021-02-27T10:13:06Z", |
| 37 | + "operationEndDateTime": "2021-02-28T11:12:12Z", |
| 38 | + "associatedBoundaryId": "AssociatedBoundary123", |
| 39 | + "operationBoundaryId": "OperationBoundary123", |
| 40 | + "status": "Active", |
| 41 | + "name": "Test application data", |
| 42 | + "description": "Test application data description", |
43 | 43 | "properties": { |
44 | | - "Region": "Europe", |
45 | | - "CountyCode": 123 |
| 44 | + "Region": "Central US", |
| 45 | + "RetailerId": 123 |
46 | 46 | } |
47 | 47 | } |
48 | 48 | }, |
49 | 49 | "responses": { |
50 | 50 | "200": { |
51 | 51 | "body": { |
52 | | - "farmerId": "FARMER123", |
53 | | - "id": "APPLICATION123", |
54 | | - "source": "Manual", |
55 | | - "name": "Application data for North Farm", |
56 | | - "description": "some description", |
57 | | - "status": "Active", |
58 | | - "operationStartDateTime": "2021-02-25T16:57:04Z", |
59 | | - "operationEndDateTime": "2021-02-27T10:13:06Z", |
60 | | - "operationModifiedDateTime": "2021-02-28T11:12:12Z", |
61 | | - "operationBoundaryId": "APPLICATIONOPBOUNDARY1", |
62 | | - "associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY", |
63 | | - "area": { |
64 | | - "unit": "acre", |
65 | | - "value": 60 |
66 | | - }, |
67 | | - "totalMaterial": { |
68 | | - "unit": "kilos", |
69 | | - "value": 9 |
70 | | - }, |
71 | | - "avgMaterial": { |
72 | | - "unit": "kilosperacre", |
73 | | - "value": 0.15 |
74 | | - }, |
75 | 52 | "applicationProductDetails": [ |
76 | 53 | { |
77 | | - "productName": "POTASHVAR1", |
| 54 | + "productName": "Product123", |
78 | 55 | "isCarrier": false, |
79 | | - "totalMaterial": { |
80 | | - "unit": "kilos", |
81 | | - "value": 4 |
82 | | - }, |
83 | 56 | "avgMaterial": { |
84 | 57 | "unit": "kilosperacre", |
85 | | - "value": 0.2 |
| 58 | + "value": 0.15 |
| 59 | + }, |
| 60 | + "totalMaterial": { |
| 61 | + "unit": "kilos", |
| 62 | + "value": 9.0 |
86 | 63 | } |
87 | 64 | } |
88 | 65 | ], |
89 | | - "properties": { |
90 | | - "Region": "Europe", |
91 | | - "CountyCode": 123 |
92 | | - }, |
93 | | - "attachmentsLink": "https://<resource-name>.farmbeats.azure.net/farmer/{{farmerId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData", |
94 | | - "createdDateTime": "2021-02-29T04:57:04Z", |
95 | | - "modifiedDateTime": "2021-03-08T18:22:07Z", |
96 | | - "eTag": "cb00a3ac-0000-0100-0000-601d21ec0000" |
97 | | - } |
98 | | - }, |
99 | | - "201": { |
100 | | - "body": { |
101 | | - "farmerId": "FARMER123", |
102 | | - "id": "APPLICATION123", |
103 | | - "source": "Manual", |
104 | | - "name": "Application data for North Farm", |
105 | | - "description": "some description", |
106 | | - "status": "Active", |
107 | | - "operationStartDateTime": "2021-02-25T16:57:04Z", |
108 | | - "operationEndDateTime": "2021-02-27T10:13:06Z", |
109 | | - "operationModifiedDateTime": "2021-02-28T11:12:12Z", |
110 | | - "operationBoundaryId": "APPLICATIONOPBOUNDARY1", |
111 | | - "associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY", |
112 | | - "area": { |
113 | | - "unit": "acre", |
114 | | - "value": 60 |
| 66 | + "avgMaterial": { |
| 67 | + "unit": "kilosperacre", |
| 68 | + "value": 0.15 |
115 | 69 | }, |
116 | 70 | "totalMaterial": { |
117 | 71 | "unit": "kilos", |
118 | | - "value": 9 |
| 72 | + "value": 9.0 |
119 | 73 | }, |
120 | | - "avgMaterial": { |
121 | | - "unit": "kilosperacre", |
122 | | - "value": 0.15 |
| 74 | + "area": { |
| 75 | + "unit": "acre", |
| 76 | + "value": 60.0 |
123 | 77 | }, |
| 78 | + "source": "Manual", |
| 79 | + "operationModifiedDateTime": "2021-02-25T16:57:04Z", |
| 80 | + "operationStartDateTime": "2021-02-27T10:13:06Z", |
| 81 | + "operationEndDateTime": "2021-02-28T11:12:12Z", |
| 82 | + "associatedBoundaryId": "AssociatedBoundary123", |
| 83 | + "operationBoundaryId": "OperationBoundary123", |
| 84 | + "farmerId": "Farmer123", |
| 85 | + "id": "Application123", |
| 86 | + "eTag": "0300c56c-0000-0600-0000-60cc93920000", |
| 87 | + "status": "Active", |
| 88 | + "createdDateTime": "2021-06-18T12:37:38Z", |
| 89 | + "modifiedDateTime": "2021-06-18T12:37:38Z", |
| 90 | + "name": "Test application data", |
| 91 | + "description": "Test application data description", |
| 92 | + "properties": { |
| 93 | + "Region": "Central US", |
| 94 | + "RetailerId": 123 |
| 95 | + } |
| 96 | + } |
| 97 | + }, |
| 98 | + "201": { |
| 99 | + "body": { |
124 | 100 | "applicationProductDetails": [ |
125 | 101 | { |
126 | | - "productName": "POTASHVAR1", |
| 102 | + "productName": "Product123", |
127 | 103 | "isCarrier": false, |
128 | | - "totalMaterial": { |
129 | | - "unit": "kilos", |
130 | | - "value": 4 |
131 | | - }, |
132 | 104 | "avgMaterial": { |
133 | 105 | "unit": "kilosperacre", |
134 | | - "value": 0.2 |
| 106 | + "value": 0.15 |
| 107 | + }, |
| 108 | + "totalMaterial": { |
| 109 | + "unit": "kilos", |
| 110 | + "value": 9.0 |
135 | 111 | } |
136 | 112 | } |
137 | 113 | ], |
138 | | - "properties": { |
139 | | - "Region": "Europe", |
140 | | - "CountyCode": 123 |
| 114 | + "avgMaterial": { |
| 115 | + "unit": "kilosperacre", |
| 116 | + "value": 0.15 |
| 117 | + }, |
| 118 | + "totalMaterial": { |
| 119 | + "unit": "kilos", |
| 120 | + "value": 9.0 |
| 121 | + }, |
| 122 | + "area": { |
| 123 | + "unit": "acre", |
| 124 | + "value": 60.0 |
141 | 125 | }, |
142 | | - "attachmentsLink": "https://<resource-name>.farmbeats.azure.net/farmer/{{farmerId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData", |
143 | | - "createdDateTime": "2021-02-29T04:57:04Z", |
144 | | - "modifiedDateTime": "2021-03-08T18:22:07Z", |
145 | | - "eTag": "cb00a3ac-0000-0100-0000-601d21ec0000" |
| 126 | + "source": "Manual", |
| 127 | + "operationModifiedDateTime": "2021-02-25T16:57:04Z", |
| 128 | + "operationStartDateTime": "2021-02-27T10:13:06Z", |
| 129 | + "operationEndDateTime": "2021-02-28T11:12:12Z", |
| 130 | + "associatedBoundaryId": "AssociatedBoundary123", |
| 131 | + "operationBoundaryId": "OperationBoundary123", |
| 132 | + "farmerId": "Farmer123", |
| 133 | + "id": "Application123", |
| 134 | + "eTag": "0300c56c-0000-0600-0000-60cc93920000", |
| 135 | + "status": "Active", |
| 136 | + "createdDateTime": "2021-06-18T12:37:38Z", |
| 137 | + "modifiedDateTime": "2021-06-18T12:37:38Z", |
| 138 | + "name": "Test application data", |
| 139 | + "description": "Test application data description", |
| 140 | + "properties": { |
| 141 | + "Region": "Central US", |
| 142 | + "RetailerId": 123 |
| 143 | + } |
146 | 144 | } |
147 | 145 | } |
148 | 146 | } |
|
0 commit comments