Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8f46eb2
2021/08/05 Add Tropical api
Aug 2, 2021
904f84e
2021/11/18 Add air quality api
Jul 26, 2021
aa0860b
2021/11/18 Add Historical api
evaou Aug 30, 2021
f07b54c
2021/11/22 Update enum and add x-ms-client-name
Nov 22, 2021
2d29717
2021/11/23 Update examples
Nov 23, 2021
203f8c5
2021/11/23 Update naming
Nov 23, 2021
62296c8
2021/11/23 Create parameter for Position
Nov 23, 2021
111c47e
2021/11/23 Update active storm
Nov 23, 2021
b3ef3a2
2021/11/30 Change reponse to result
Nov 30, 2021
005cbab
2021/11/30 Add x-ms-client-name
Nov 30, 2021
8ca5f40
2021/11/30 Update timestamp, coordinate, and radius naming in SDK
Nov 30, 2021
a82e1f1
2021/11/30 Use WeatherUnit for Concentration
Nov 30, 2021
32168f8
2021/11/30 Update Daily Air quality dominantPollutant
Nov 30, 2021
d718c90
2021/11/30 Unify response format
Nov 30, 2021
0b86081
2021/11/30 Unify CurrentAirQuality and HourlyAirQualityForecast
Nov 30, 2021
61c6809
2021/12/01 Update window and weatherValue SDK name
Dec 1, 2021
db189e5
2021/12/02 Update coordinate and left, right SDK name
Dec 2, 2021
68630a4
2021/12/03 Add SDK name for results
Dec 3, 2021
2d3bedd
2021/12/03 Improve Object name
Dec 3, 2021
a52726c
2021/12/03 Update ActiveStorm
Dec 3, 2021
8f242da
2021/12/03 Remove needless object and update name
Dec 3, 2021
68bbbc5
2021/12/06 Add weather 2.0 directory
Dec 6, 2021
46f588e
2021/12/06 Recover Weather 1.0 Swagger file
Dec 6, 2021
ab3d5c6
2021/12/07 Remove v2 from operationId
Dec 7, 2021
4078438
2021/12/08 Update readme.md
Dec 8, 2021
625ac56
Set default API version as 2.0
evaou Dec 12, 2021
d5ec760
2022/01/07 Remove default value for api-version
Jan 7, 2022
d731738
2022/01/07 Remove needless custom-words
Jan 7, 2022
12949ba
2022/01/11 Update api-version and add nextLink
Jan 11, 2022
b18768b
2022/01/11 Update api-version in readme.md
Jan 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2429,6 +2429,8 @@ Ctlr
vcenters
Mwarev
pmem
actuals
Actuals
rawphysical
rawvirtual
sesparse
Expand Down
11 changes: 10 additions & 1 deletion specification/maps/data-plane/Weather/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,23 @@ These are the global settings for Weather Client.
``` yaml
title: WeatherClient
openapi-type: data-plane
tag: 1.0-preview
tag: 1.1
# at some point those credentials will move away to Swagger according to [this](https://github.com/Azure/autorest/issues/3718)
add-credentials: true
credential-default-policy-type: BearerTokenCredentialPolicy
credential-scopes: https://atlas.microsoft.com/.default
```


### Tag: 1.1

These settings apply only when `--tag=1.1` is specified on the command line.

``` yaml $(tag) == '1.1'
input-file:
- stable/1.1/weather.json
```

### Tag: 1.0-preview

These settings apply only when `--tag=1.0-preview` is specified on the command line.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "1.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the discussion at the meeting was for date-based versions since that's what other services with an API version query parameter do?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the discussion and conclusion in the 2nd weather api review session, we would apply api version 1.1 and I've shared the related recording with Travis.

"format": "json"
},
"responses": {
"200": {
"body": {
"results": [
{
"year": "2021",
"basinId": "EP",
"name": "Hilda",
"isActive": true,
"isSubtropical": false,
"govId": 8
},
{
"year": "2021",
"basinId": "EP",
"name": "TD 9E",
"isActive": true,
"isSubtropical": false,
"govId": 9
},
{
"year": "2021",
"basinId": "NP",
"name": "TWELVE",
"isActive": true,
"isSubtropical": false,
"govId": 12
},
{
"year": "2021",
"basinId": "NP",
"name": "LUPIT",
"isActive": true,
"isSubtropical": false,
"govId": 13
},
{
"year": "2021",
"basinId": "NP",
"name": "FOURTEEN",
"isActive": true,
"isSubtropical": false,
"govId": 14
},
{
"year": "2021",
"basinId": "NP",
"name": "FIFTEEN",
"isActive": true,
"isSubtropical": false,
"govId": 15
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"parameters": {
"api-version": "1.1",
"format": "json",
"query": "47.632346,-122.13887"
},
"responses": {
"200": {
"body": {
"results": [
{
"dateTime": "2021-07-19T02:00:00+00:00",
"index": 21.6,
"globalIndex": 22.1,
"dominantPollutant": "Ozone",
"category": "Fair",
"categoryColor": "#FFC300",
"description": "The air quality is generally acceptable for most individuals. However, sensitive groups may experience minor to moderate symptoms from long-term exposure.",
"pollutants": [
{
"type": "NO2",
"name": "Nitrogen Dioxide",
"index": 6.7,
"globalIndex": 6.7,
"concentration": {
"value": 13.4,
"unit": "µg/m³",
"unitType": 31
}
},
{
"type": "O3",
"name": "Ozone",
"index": 21.6,
"globalIndex": 22.1,
"concentration": {
"value": 53.5,
"unit": "µg/m³",
"unitType": 31
}
},
{
"type": "PM10",
"name": "Particulate Matter 10",
"index": 11.3,
"globalIndex": 12.2,
"concentration": {
"value": 12.2,
"unit": "µg/m³",
"unitType": 31
}
},
{
"type": "PM2.5",
"name": "Particulate Matter 2.5",
"index": 13.5,
"globalIndex": 6.5,
"concentration": {
"value": 3.2,
"unit": "µg/m³",
"unitType": 31
}
},
{
"type": "CO",
"name": "Carbon Monoxide",
"index": 1.2,
"globalIndex": 0.6,
"concentration": {
"value": 118.4,
"unit": "µg/m³",
"unitType": 31
}
},
{
"type": "SO2",
"name": "Sulfur Dioxide",
"index": 0.6,
"globalIndex": 1.1,
"concentration": {
"value": 1.1,
"unit": "µg/m³",
"unitType": 31
}
}
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
"parameters": {
"api-version": "1.1",
"format": "json",
"query": "47.641268,-122.125679"
},
"responses": {
"200": {
"body": {
"results": [
{
"dateTime": "2019-11-14T15:08:00-08:00",
"phrase": "Cloudy",
"iconCode": 7,
"hasPrecipitation": false,
"isDayTime": true,
"temperature": {
"value": 13.7,
"unit": "C",
"unitType": 17
},
"realFeelTemperature": {
"value": 13.6,
"unit": "C",
"unitType": 17
},
"realFeelTemperatureShade": {
"value": 13.6,
"unit": "C",
"unitType": 17
},
"relativeHumidity": 75,
"dewPoint": {
"value": 9.2,
"unit": "C",
"unitType": 17
},
"wind": {
"direction": {
"degrees": 315,
"localizedDescription": "NW"
},
"speed": {
"value": 3.6,
"unit": "km/h",
"unitType": 7
}
},
"windGust": {
"speed": {
"value": 4.9,
"unit": "km/h",
"unitType": 7
}
},
"uvIndex": 0,
"uvIndexPhrase": "Low",
"visibility": {
"value": 8,
"unit": "km",
"unitType": 6
},
"obstructionsToVisibility": "",
"cloudCover": 95,
"ceiling": {
"value": 4359,
"unit": "m",
"unitType": 5
},
"pressure": {
"value": 1014.9,
"unit": "mb",
"unitType": 14
},
"pressureTendency": {
"localizedDescription": "Steady",
"code": "S"
},
"pastTwentyFourHourTemperatureDeparture": {
"value": 1.8,
"unit": "C",
"unitType": 17
},
"apparentTemperature": {
"value": 16.1,
"unit": "C",
"unitType": 17
},
"windChillTemperature": {
"value": 13.9,
"unit": "C",
"unitType": 17
},
"wetBulbTemperature": {
"value": 11.4,
"unit": "C",
"unitType": 17
},
"precipitationSummary": {
"pastHour": {
"value": 0.5,
"unit": "mm",
"unitType": 3
},
"pastThreeHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
},
"pastSixHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
},
"pastNineHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
},
"pastTwelveHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
},
"pastEighteenHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
},
"pastTwentyFourHours": {
"value": 0.8,
"unit": "mm",
"unitType": 3
}
},
"temperatureSummary": {
"pastSixHours": {
"minimum": {
"value": 8.3,
"unit": "C",
"unitType": 17
},
"maximum": {
"value": 13.7,
"unit": "C",
"unitType": 17
}
},
"pastTwelveHours": {
"minimum": {
"value": 5.9,
"unit": "C",
"unitType": 17
},
"maximum": {
"value": 13.7,
"unit": "C",
"unitType": 17
}
},
"pastTwentyFourHours": {
"minimum": {
"value": 5.9,
"unit": "C",
"unitType": 17
},
"maximum": {
"value": 13.7,
"unit": "C",
"unitType": 17
}
}
}
}
]
}
}
}
}
Loading