Skip to content

Commit

Permalink
Updating swagger for June (Azure#14821)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
RGKarthik authored Jul 20, 2021
1 parent 2a89fd4 commit f0cf72b
Show file tree
Hide file tree
Showing 60 changed files with 3,177 additions and 2,418 deletions.
5 changes: 5 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ jobschedule
jobscheduler
jobschedules
johnc
JOHNDEERE
johnsmith
JSONLD
Jtoken
Expand Down Expand Up @@ -1219,6 +1220,8 @@ nchar
ndjson
ndvi
NDVI
ndwi
NDWI
Neighbourhood
netapp
netbsd
Expand Down Expand Up @@ -1487,6 +1490,7 @@ RAGZRS
randint
Rankable
rasterize
rasterized
ratelimit
ravbhatnagar
rawwebsockets
Expand Down Expand Up @@ -1713,6 +1717,7 @@ sfhealthid
sfpkg
shamir_share
shapefile
shapefiles
sharded
sharedkey
sharename
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"farmerId": "Farmer123",
"applicationDataId": "Application123",
"api-version": "2021-03-31-preview",
"jobId": "Job123"
},
"responses": {
"202": {
"body": {
"farmerId": "Farmer123",
"resourceId": "Application123",
"resourceType": "farmoperationapplicationdata",
"id": "Job123",
"status": "Waiting",
"message": "Created cascade delete job for 'farmoperationapplicationdata' resource with id 'Application123' and farmerId 'Farmer123'.",
"createdDateTime": "2021-06-19T09:39:37Z",
"lastActionDateTime": "2021-06-19T09:39:37Z",
"startTime": "2021-06-19T09:39:37Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,148 +1,146 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"farmerId": "FARMER123",
"applicationDataId": "APPLICATION123",
"farmerId": "Farmer123",
"applicationDataId": "Application123",
"api-version": "2021-03-31-preview",
"applicationData": {
"source": "Manual",
"name": "Application data for North Farm",
"description": "some description",
"status": "Active",
"operationStartDateTime": "2021-02-25T16:57:04Z",
"operationEndDateTime": "2021-02-27T10:13:06Z",
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
"operationBoundaryId": "APPLICATIONOPBOUNDARY1",
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
"area": {
"unit": "acre",
"value": 60
},
"totalMaterial": {
"unit": "kilos",
"value": 9
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
},
"applicationProductDetails": [
{
"productName": "POTASHVAR1",
"productName": "Product123",
"isCarrier": false,
"totalMaterial": {
"unit": "kilos",
"value": 4
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.2
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9
}
}
],
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9
},
"area": {
"unit": "acre",
"value": 60
},
"source": "Manual",
"operationModifiedDateTime": "2021-02-25T16:57:04Z",
"operationStartDateTime": "2021-02-27T10:13:06Z",
"operationEndDateTime": "2021-02-28T11:12:12Z",
"associatedBoundaryId": "AssociatedBoundary123",
"operationBoundaryId": "OperationBoundary123",
"status": "Active",
"name": "Test application data",
"description": "Test application data description",
"properties": {
"Region": "Europe",
"CountyCode": 123
"Region": "Central US",
"RetailerId": 123
}
}
},
"responses": {
"200": {
"body": {
"farmerId": "FARMER123",
"id": "APPLICATION123",
"source": "Manual",
"name": "Application data for North Farm",
"description": "some description",
"status": "Active",
"operationStartDateTime": "2021-02-25T16:57:04Z",
"operationEndDateTime": "2021-02-27T10:13:06Z",
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
"operationBoundaryId": "APPLICATIONOPBOUNDARY1",
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
"area": {
"unit": "acre",
"value": 60
},
"totalMaterial": {
"unit": "kilos",
"value": 9
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
},
"applicationProductDetails": [
{
"productName": "POTASHVAR1",
"productName": "Product123",
"isCarrier": false,
"totalMaterial": {
"unit": "kilos",
"value": 4
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.2
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9.0
}
}
],
"properties": {
"Region": "Europe",
"CountyCode": 123
},
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/farmer/{{farmerId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
"createdDateTime": "2021-02-29T04:57:04Z",
"modifiedDateTime": "2021-03-08T18:22:07Z",
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
}
},
"201": {
"body": {
"farmerId": "FARMER123",
"id": "APPLICATION123",
"source": "Manual",
"name": "Application data for North Farm",
"description": "some description",
"status": "Active",
"operationStartDateTime": "2021-02-25T16:57:04Z",
"operationEndDateTime": "2021-02-27T10:13:06Z",
"operationModifiedDateTime": "2021-02-28T11:12:12Z",
"operationBoundaryId": "APPLICATIONOPBOUNDARY1",
"associatedBoundaryId": "NORTHFARM2021CORNBOUNDARY",
"area": {
"unit": "acre",
"value": 60
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9
"value": 9.0
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
"area": {
"unit": "acre",
"value": 60.0
},
"source": "Manual",
"operationModifiedDateTime": "2021-02-25T16:57:04Z",
"operationStartDateTime": "2021-02-27T10:13:06Z",
"operationEndDateTime": "2021-02-28T11:12:12Z",
"associatedBoundaryId": "AssociatedBoundary123",
"operationBoundaryId": "OperationBoundary123",
"farmerId": "Farmer123",
"id": "Application123",
"eTag": "0300c56c-0000-0600-0000-60cc93920000",
"status": "Active",
"createdDateTime": "2021-06-18T12:37:38Z",
"modifiedDateTime": "2021-06-18T12:37:38Z",
"name": "Test application data",
"description": "Test application data description",
"properties": {
"Region": "Central US",
"RetailerId": 123
}
}
},
"201": {
"body": {
"applicationProductDetails": [
{
"productName": "POTASHVAR1",
"productName": "Product123",
"isCarrier": false,
"totalMaterial": {
"unit": "kilos",
"value": 4
},
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.2
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9.0
}
}
],
"properties": {
"Region": "Europe",
"CountyCode": 123
"avgMaterial": {
"unit": "kilosperacre",
"value": 0.15
},
"totalMaterial": {
"unit": "kilos",
"value": 9.0
},
"area": {
"unit": "acre",
"value": 60.0
},
"attachmentsLink": "https://<resource-name>.farmbeats.azure.net/farmer/{{farmerId}}/attachments?api-version={{apiVersion}}&resourceIds={{applicationDataId}}&resourceTypes=ApplicationData",
"createdDateTime": "2021-02-29T04:57:04Z",
"modifiedDateTime": "2021-03-08T18:22:07Z",
"eTag": "cb00a3ac-0000-0100-0000-601d21ec0000"
"source": "Manual",
"operationModifiedDateTime": "2021-02-25T16:57:04Z",
"operationStartDateTime": "2021-02-27T10:13:06Z",
"operationEndDateTime": "2021-02-28T11:12:12Z",
"associatedBoundaryId": "AssociatedBoundary123",
"operationBoundaryId": "OperationBoundary123",
"farmerId": "Farmer123",
"id": "Application123",
"eTag": "0300c56c-0000-0600-0000-60cc93920000",
"status": "Active",
"createdDateTime": "2021-06-18T12:37:38Z",
"modifiedDateTime": "2021-06-18T12:37:38Z",
"name": "Test application data",
"description": "Test application data description",
"properties": {
"Region": "Central US",
"RetailerId": 123
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"farmerId": "FARMER123",
"applicationDataId": "APPLICATION123",
"farmerId": "Farmer123",
"applicationDataId": "Application123",
"api-version": "2021-03-31-preview"
},
"responses": {
Expand Down
Loading

0 comments on commit f0cf72b

Please sign in to comment.