You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
movesense_exercise/wbresources/AccelerometerSample.yaml

62 lines
1.9 KiB

# This file defines Suunto Whiteboard API for Movesense Hackathon 2016 sample
#
swagger: '2.0'
# Document metadata
info:
version: "0.0.0"
title: Movesense Accelerometer sample app API
description: |
This file defines API for Movesense Accelerometer Sample service
See http://movesense.com for more information.
termsOfService: http://suunto.com/wbapi/terms/
contact:
name: Suunto team
url: http://developer.suunto.com
# Paths
paths:
/Sample/Accelerometer/Data/Subscription:
post:
description: |
Subscribe to periodic Data values.
See documentation on product-specific measurement periods at
http://XXX.suunto.com/XXX. If measurement source is unavailable, the
Measurement member will be empty. If present, Measurement member
contains single measurement result.
responses:
200:
description: Operation completed successfully
x-std-errors:
description: See common error codes http://developer.suunto.com/api/std-errors#subscribe
x-notification:
description: New value
schema:
$ref: '#/definitions/SampleDataValue'
delete:
description: |
Unsubscribe from sample data values.
responses:
200:
description: Operation completed successfully
x-std-errors:
description: See common error codes http://developer.suunto.com/api/std-errors#unsubscribe
definitions:
SampleDataValue:
required:
- RelativeTime
- Value
properties:
RelativeTime:
description: Relative time of measurement
type: integer
format: uint32
x-unit: millisecond
Value:
description: Sample Data Value (in practice max absolute acceleration, over about 5 seconds when subscribed)
type: number
format: float
x-unit: m/s^2