implement count rpc
This commit is contained in:
@@ -16,6 +16,42 @@
|
||||
"application/json"
|
||||
],
|
||||
"paths": {
|
||||
"/v1/count": {
|
||||
"get": {
|
||||
"operationId": "AmbientLocalWeatherService_CountWeatherUpdates",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/weatherCountWeatherUpdatesResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "opts.stationName",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "opts.stationType",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"AmbientLocalWeatherService"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/weather": {
|
||||
"get": {
|
||||
"operationId": "AmbientLocalWeatherService_GetWeather",
|
||||
@@ -102,6 +138,15 @@
|
||||
},
|
||||
"title": "Represents battery status for different components"
|
||||
},
|
||||
"weatherCountWeatherUpdatesResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"count": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"weatherGetWeatherOpts": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
Reference in New Issue
Block a user