Skip to content

Commit f0cf72b

Browse files
authored
Updating swagger for June (#14821)
* v1 of updated swagger * Adding examples for farm operations * Spell check + prettier check * Spelling fix * Fixing model validation * Model validation fix * Removing additional propoerties * Removing additional propoerties * Prettier fix * Doc bash bgs v1 * Adding updated examples * Prettier fix * Prettier fix * Fixing model validation errors * Fixing examples formodel validation * Fixing Lintdiff errors * agfood to agrifood * Agfood to agrifood * Reverting change from agrifood to agfood * Udpates * Updates * Update package.json
1 parent 2a89fd4 commit f0cf72b

File tree

60 files changed

+3177
-2418
lines changed

Some content is hidden

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

60 files changed

+3177
-2418
lines changed

custom-words.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ jobschedule
940940
jobscheduler
941941
jobschedules
942942
johnc
943+
JOHNDEERE
943944
johnsmith
944945
JSONLD
945946
Jtoken
@@ -1219,6 +1220,8 @@ nchar
12191220
ndjson
12201221
ndvi
12211222
NDVI
1223+
ndwi
1224+
NDWI
12221225
Neighbourhood
12231226
netapp
12241227
netbsd
@@ -1487,6 +1490,7 @@ RAGZRS
14871490
randint
14881491
Rankable
14891492
rasterize
1493+
rasterized
14901494
ratelimit
14911495
ravbhatnagar
14921496
rawwebsockets
@@ -1713,6 +1717,7 @@ sfhealthid
17131717
sfpkg
17141718
shamir_share
17151719
shapefile
1720+
shapefiles
17161721
sharded
17171722
sharedkey
17181723
sharename

specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2021-03-31-preview/agfood.json

Lines changed: 1829 additions & 1226 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"farmerId": "Farmer123",
5+
"applicationDataId": "Application123",
6+
"api-version": "2021-03-31-preview",
7+
"jobId": "Job123"
8+
},
9+
"responses": {
10+
"202": {
11+
"body": {
12+
"farmerId": "Farmer123",
13+
"resourceId": "Application123",
14+
"resourceType": "farmoperationapplicationdata",
15+
"id": "Job123",
16+
"status": "Waiting",
17+
"message": "Created cascade delete job for 'farmoperationapplicationdata' resource with id 'Application123' and farmerId 'Farmer123'.",
18+
"createdDateTime": "2021-06-19T09:39:37Z",
19+
"lastActionDateTime": "2021-06-19T09:39:37Z",
20+
"startTime": "2021-06-19T09:39:37Z"
21+
}
22+
}
23+
}
24+
}

specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2021-03-31-preview/examples/ApplicationData_CreateOrUpdate.json

Lines changed: 101 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,148 +1,146 @@
11
{
22
"parameters": {
33
"Endpoint": "{Endpoint}",
4-
"farmerId": "FARMER123",
5-
"applicationDataId": "APPLICATION123",
4+
"farmerId": "Farmer123",
5+
"applicationDataId": "Application123",
66
"api-version": "2021-03-31-preview",
77
"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-
},
298
"applicationProductDetails": [
309
{
31-
"productName": "POTASHVAR1",
10+
"productName": "Product123",
3211
"isCarrier": false,
33-
"totalMaterial": {
34-
"unit": "kilos",
35-
"value": 4
36-
},
3712
"avgMaterial": {
3813
"unit": "kilosperacre",
39-
"value": 0.2
14+
"value": 0.15
15+
},
16+
"totalMaterial": {
17+
"unit": "kilos",
18+
"value": 9
4019
}
4120
}
4221
],
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",
4343
"properties": {
44-
"Region": "Europe",
45-
"CountyCode": 123
44+
"Region": "Central US",
45+
"RetailerId": 123
4646
}
4747
}
4848
},
4949
"responses": {
5050
"200": {
5151
"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-
},
7552
"applicationProductDetails": [
7653
{
77-
"productName": "POTASHVAR1",
54+
"productName": "Product123",
7855
"isCarrier": false,
79-
"totalMaterial": {
80-
"unit": "kilos",
81-
"value": 4
82-
},
8356
"avgMaterial": {
8457
"unit": "kilosperacre",
85-
"value": 0.2
58+
"value": 0.15
59+
},
60+
"totalMaterial": {
61+
"unit": "kilos",
62+
"value": 9.0
8663
}
8764
}
8865
],
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
11569
},
11670
"totalMaterial": {
11771
"unit": "kilos",
118-
"value": 9
72+
"value": 9.0
11973
},
120-
"avgMaterial": {
121-
"unit": "kilosperacre",
122-
"value": 0.15
74+
"area": {
75+
"unit": "acre",
76+
"value": 60.0
12377
},
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": {
124100
"applicationProductDetails": [
125101
{
126-
"productName": "POTASHVAR1",
102+
"productName": "Product123",
127103
"isCarrier": false,
128-
"totalMaterial": {
129-
"unit": "kilos",
130-
"value": 4
131-
},
132104
"avgMaterial": {
133105
"unit": "kilosperacre",
134-
"value": 0.2
106+
"value": 0.15
107+
},
108+
"totalMaterial": {
109+
"unit": "kilos",
110+
"value": 9.0
135111
}
136112
}
137113
],
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
141125
},
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+
}
146144
}
147145
}
148146
}

specification/agrifood/data-plane/Microsoft.AgFoodPlatform/preview/2021-03-31-preview/examples/ApplicationData_Delete.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"parameters": {
33
"Endpoint": "{Endpoint}",
4-
"farmerId": "FARMER123",
5-
"applicationDataId": "APPLICATION123",
4+
"farmerId": "Farmer123",
5+
"applicationDataId": "Application123",
66
"api-version": "2021-03-31-preview"
77
},
88
"responses": {

0 commit comments

Comments
 (0)