Skip to content

Commit 6f3459b

Browse files
bhargav-kansagarautkarshAtMSFTutkarsh222739JatinKhatri03
authored
[AgriFood] Adding Nov 2022 API version (#21001)
* Adding Nov 2022 API version * Fixing swagger * examples added * prettier changes * prettier examples * validated-examples * updated some examples * changes * solved avacado and spell check * avocado * lint fixes * removed duplicate field from form-data * Removing forceRefresh from WeatherRequest * solved lint errors * model validation * removed min max from autopopulating fields and etag from parameters --------- Co-authored-by: Utkarsh Rai <[email protected]> Co-authored-by: Utkarsh Rai <[email protected]> Co-authored-by: Jatin <[email protected]>
1 parent df33a7f commit 6f3459b

File tree

197 files changed

+32516
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+32516
-1
lines changed

specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2022-11-01-preview/agfood.json

Lines changed: 24512 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"partyId": "PARTY123",
4+
"applicationDataId": "ApplicationData123",
5+
"api-version": "2022-11-01-preview",
6+
"jobId": "JOB123"
7+
},
8+
"responses": {
9+
"202": {
10+
"body": {
11+
"id": "JOB123",
12+
"status": "Waiting",
13+
"message": "Created cascade delete job for 'farmoperationapplicationdata' resource with id 'ApplicationData123' and partyId 'PARTY123'.",
14+
"createdDateTime": "2021-04-19T11:31:20Z",
15+
"lastActionDateTime": "2021-04-19T11:31:34Z",
16+
"startTime": "2021-04-19T11:31:19Z",
17+
"partyId": "PARTY123",
18+
"resourceId": "ApplicationData123",
19+
"resourceType": "farmoperationapplicationdata"
20+
}
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{
2+
"parameters": {
3+
"partyId": "PARTY123",
4+
"applicationDataId": "APPLICATION123",
5+
"api-version": "2022-11-01-preview",
6+
"applicationData": {
7+
"source": "Manual",
8+
"name": "Application data for North Farm",
9+
"description": "some description",
10+
"status": "Active",
11+
"operationStartDateTime": "2021-02-25T16:57:04Z",
12+
"operationEndDateTime": "2021-02-27T10:13:06Z",
13+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
14+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
15+
"area": {
16+
"unit": "acre",
17+
"value": 60
18+
},
19+
"totalMaterial": {
20+
"unit": "kilos",
21+
"value": 9
22+
},
23+
"avgMaterial": {
24+
"unit": "kilosperacre",
25+
"value": 0.15
26+
},
27+
"applicationProductDetails": [
28+
{
29+
"productName": "POTASHVAR1",
30+
"isCarrier": false,
31+
"totalMaterial": {
32+
"unit": "kilos",
33+
"value": 4
34+
},
35+
"avgMaterial": {
36+
"unit": "kilosperacre",
37+
"value": 0.2
38+
}
39+
}
40+
],
41+
"properties": {
42+
"Region": "Europe",
43+
"CountyCode": 123
44+
}
45+
}
46+
},
47+
"responses": {
48+
"200": {
49+
"body": {
50+
"partyId": "PARTY123",
51+
"id": "APPLICATION123",
52+
"source": "Manual",
53+
"name": "Application data for North Farm",
54+
"description": "some description",
55+
"status": "Active",
56+
"operationStartDateTime": "2021-02-25T16:57:04Z",
57+
"operationEndDateTime": "2021-02-27T10:13:06Z",
58+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
59+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
60+
"area": {
61+
"unit": "acre",
62+
"value": 60
63+
},
64+
"totalMaterial": {
65+
"unit": "kilos",
66+
"value": 9
67+
},
68+
"avgMaterial": {
69+
"unit": "kilosperacre",
70+
"value": 0.15
71+
},
72+
"applicationProductDetails": [
73+
{
74+
"productName": "POTASHVAR1",
75+
"isCarrier": false,
76+
"totalMaterial": {
77+
"unit": "kilos",
78+
"value": 4
79+
},
80+
"avgMaterial": {
81+
"unit": "kilosperacre",
82+
"value": 0.2
83+
}
84+
}
85+
],
86+
"properties": {
87+
"Region": "Europe",
88+
"CountyCode": 123
89+
},
90+
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/party/{{partyId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
91+
"createdDateTime": "2022-05-11T07:00:10.2750191Z",
92+
"modifiedDateTime": "2022-05-11T07:00:10.2750191Z",
93+
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
94+
}
95+
},
96+
"201": {
97+
"body": {
98+
"partyId": "PARTY123",
99+
"id": "APPLICATION123",
100+
"source": "Manual",
101+
"name": "Application data for North Farm",
102+
"description": "some description",
103+
"status": "Active",
104+
"operationStartDateTime": "2021-02-25T16:57:04Z",
105+
"operationEndDateTime": "2021-02-27T10:13:06Z",
106+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
107+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
108+
"area": {
109+
"unit": "acre",
110+
"value": 60
111+
},
112+
"totalMaterial": {
113+
"unit": "kilos",
114+
"value": 9
115+
},
116+
"avgMaterial": {
117+
"unit": "kilosperacre",
118+
"value": 0.15
119+
},
120+
"applicationProductDetails": [
121+
{
122+
"productName": "POTASHVAR1",
123+
"isCarrier": false,
124+
"totalMaterial": {
125+
"unit": "kilos",
126+
"value": 4
127+
},
128+
"avgMaterial": {
129+
"unit": "kilosperacre",
130+
"value": 0.2
131+
}
132+
}
133+
],
134+
"properties": {
135+
"Region": "Europe",
136+
"CountyCode": 123
137+
},
138+
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/party/{{partyId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
139+
"createdDateTime": "2022-05-11T07:00:10.2750191Z",
140+
"modifiedDateTime": "2022-05-11T07:00:10.2750191Z",
141+
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
142+
}
143+
}
144+
}
145+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"partyId": "PARTY123",
4+
"applicationDataId": "APPLICATION123",
5+
"api-version": "2022-11-01-preview"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"partyId": "PARTY123",
4+
"applicationDataId": "APPLICATION123",
5+
"api-version": "2022-11-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"partyId": "PARTY123",
11+
"id": "APPLICATION123",
12+
"source": "Manual",
13+
"name": "Application data for North Farm",
14+
"description": "some description",
15+
"status": "Active",
16+
"operationStartDateTime": "2021-02-25T16:57:04Z",
17+
"operationEndDateTime": "2021-02-27T10:13:06Z",
18+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
19+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
20+
"area": {
21+
"unit": "acre",
22+
"value": 60
23+
},
24+
"totalMaterial": {
25+
"unit": "kilos",
26+
"value": 9
27+
},
28+
"avgMaterial": {
29+
"unit": "kilosperacre",
30+
"value": 0.15
31+
},
32+
"applicationProductDetails": [
33+
{
34+
"productName": "POTASHVAR1",
35+
"isCarrier": false,
36+
"totalMaterial": {
37+
"unit": "kilos",
38+
"value": 4
39+
},
40+
"avgMaterial": {
41+
"unit": "kilosperacre",
42+
"value": 0.2
43+
}
44+
}
45+
],
46+
"properties": {
47+
"Region": "Europe",
48+
"CountyCode": 123
49+
},
50+
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/party/{{partyId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
51+
"createdDateTime": "2020-12-31T11:10:21Z",
52+
"modifiedDateTime": "2020-12-31T11:10:21Z",
53+
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
54+
}
55+
}
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview",
4+
"jobId": "JOB123"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "JOB123",
10+
"status": "Succeeded",
11+
"message": "Job completed successfully.",
12+
"durationInSeconds": 14.7977857,
13+
"createdDateTime": "2021-04-19T11:31:20Z",
14+
"lastActionDateTime": "2021-04-19T11:31:34Z",
15+
"startTime": "2021-04-19T11:31:19Z",
16+
"partyId": "PARTY123",
17+
"resourceId": "ApplicationData123",
18+
"resourceType": "farmoperationapplicationdata"
19+
}
20+
}
21+
}
22+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-11-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"partyId": "PARTY123",
11+
"id": "APPLICATION123",
12+
"source": "Manual",
13+
"name": "Application data for North Farm",
14+
"description": "some description",
15+
"status": "Active",
16+
"operationStartDateTime": "2021-02-25T16:57:04Z",
17+
"operationEndDateTime": "2021-02-27T10:13:06Z",
18+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
19+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
20+
"area": {
21+
"unit": "acre",
22+
"value": 60
23+
},
24+
"totalMaterial": {
25+
"unit": "kilos",
26+
"value": 9
27+
},
28+
"avgMaterial": {
29+
"unit": "kilosperacre",
30+
"value": 0.15
31+
},
32+
"applicationProductDetails": [
33+
{
34+
"productName": "POTASHVAR1",
35+
"isCarrier": false,
36+
"totalMaterial": {
37+
"unit": "kilos",
38+
"value": 4
39+
},
40+
"avgMaterial": {
41+
"unit": "kilosperacre",
42+
"value": 0.2
43+
}
44+
}
45+
],
46+
"properties": {
47+
"Region": "Europe",
48+
"CountyCode": 123
49+
},
50+
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/party/{{partyId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
51+
"createdDateTime": "2022-05-11T07:00:10.2750191Z",
52+
"modifiedDateTime": "2022-05-11T07:00:10.2750191Z",
53+
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
54+
}
55+
],
56+
"skipToken": "string",
57+
"nextLink": "https://{{resourceName}}.farmbeats.azure.net/parties/{{partyId}}/seasonalFields/{{seasonalFieldId}}?api-version={{apiVersion}}&skipToken=%5b%7b%22token%22%3a%22%2bRID%3a%7e23TRC%3a10%23ISA%3d%22%2c%22range%22%3a%7b%22min%22%3a%22%22%2c%22max%22%3a%22FF%22%7d%7d%5d"
58+
}
59+
}
60+
}
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"parameters": {
3+
"partyId": "PARTY123",
4+
"api-version": "2022-11-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"partyId": "PARTY123",
12+
"id": "APPLICATION123",
13+
"source": "Manual",
14+
"name": "Application data for North Farm",
15+
"description": "some description",
16+
"status": "Active",
17+
"operationStartDateTime": "2021-02-25T16:57:04Z",
18+
"operationEndDateTime": "2021-02-27T10:13:06Z",
19+
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
20+
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
21+
"area": {
22+
"unit": "acre",
23+
"value": 60
24+
},
25+
"totalMaterial": {
26+
"unit": "kilos",
27+
"value": 9
28+
},
29+
"avgMaterial": {
30+
"unit": "kilosperacre",
31+
"value": 0.15
32+
},
33+
"applicationProductDetails": [
34+
{
35+
"productName": "POTASHVAR1",
36+
"isCarrier": false,
37+
"totalMaterial": {
38+
"unit": "kilos",
39+
"value": 4
40+
},
41+
"avgMaterial": {
42+
"unit": "kilosperacre",
43+
"value": 0.2
44+
}
45+
}
46+
],
47+
"properties": {
48+
"Region": "Europe",
49+
"CountyCode": 123
50+
},
51+
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/parties/{{partyId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
52+
"createdDateTime": "2022-05-11T07:00:10.2750191Z",
53+
"modifiedDateTime": "2022-05-11T07:00:10.2750191Z",
54+
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
55+
}
56+
],
57+
"skipToken": "string",
58+
"nextLink": "https://{{resourceName}}.farmbeats.azure.net/parties/{{partytId}}/applicationData/{{applicationDataId}}?api-version={{apiVersion}}&skipToken=%5b%7b%22token%22%3a%22%2bRID%3a%7e23TRC%3a10%23ISA%3d%22%2c%22range%22%3a%7b%22min%22%3a%22%22%2c%22max%22%3a%22FF%22%7d%7d%5d"
59+
}
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)