Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3f6d3755
authored
Jul 19, 2016
by
Eli Ben Baruch
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
For the airQuality microservice. currently only one api included
parent
35ea33e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
103 additions
and
0 deletions
products/MCX/AirQuality/airQualitySwagger.yaml
products/MCX/AirQuality/airQualitySwagger.yaml
0 → 100644
View file @
3f6d3755
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger
:
'
2.0'
info
:
title
:
AirQuality
description
:
Move your app forward with the AirQuality API
version
:
"
1.0.0"
# the domain of the service
host
:
'
62.90.235.105:8103'
# array of all schemes that your API supports
schemes
:
-
https
# will be prefixed to all paths
basePath
:
/airQuality/api/v1
produces
:
-
application/json
paths
:
/{regionName}/status
:
get
:
summary
:
get the status information of each sensor in the region
description
:
|
get the status information of each sensor in the region
parameters
:
-
name
:
regionName
in
:
path
description
:
the name of the region. unique string identifier for the requested region.
required
:
true
type
:
string
responses
:
200
:
description
:
RestResponse
schema
:
$ref
:
'
#/definitions/StatusArrayRestResponse'
default
:
description
:
Unexpected error
schema
:
$ref
:
'
#/definitions/Error'
definitions
:
#######
StatusArrayRestResponse
:
type
:
object
properties
:
success
:
type
:
boolean
error
:
type
:
string
objectNode
:
$ref
:
'
#/definitions/SensorArray'
SensorArray
:
properties
:
items
:
type
:
array
items
:
$ref
:
"
#/definitions/Sensor"
Sensor
:
type
:
object
properties
:
lat
:
type
:
number
description
:
Latitude position of the sensor in decimal degrees
lon
:
type
:
number
description
:
Longitude position of the sensor in decimal degrees
aqi
:
type
:
number
description
:
air quality index
utime
:
type
:
string
description
:
maybe update time
stamp
:
type
:
number
description
:
timestamp
city
:
type
:
string
description
:
name of the city
pol
:
type
:
string
description
:
polutiion
tz
:
type
:
string
description
:
time zone
x
:
type
:
string
description
:
dont know
#######
Error
:
type
:
object
properties
:
code
:
type
:
integer
format
:
int32
message
:
type
:
string
fields
:
type
:
string
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment