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.
62 lines
1.8 KiB
62 lines
1.8 KiB
6 years ago
|
# This file defines Suunto Whiteboard API for Movesense Hackathon 2016 sample
|
||
|
#
|
||
|
swagger: '2.0'
|
||
|
|
||
|
# Document metadata
|
||
|
info:
|
||
|
version: "0.0.0"
|
||
6 years ago
|
title: Movesense Exercise app API
|
||
6 years ago
|
description: |
|
||
6 years ago
|
This file defines API for Movesense Exercise service
|
||
6 years ago
|
|
||
|
See http://movesense.com for more information.
|
||
|
termsOfService: http://suunto.com/wbapi/terms/
|
||
|
contact:
|
||
|
name: Suunto team
|
||
|
url: http://developer.suunto.com
|
||
|
|
||
|
# Paths
|
||
|
paths:
|
||
6 years ago
|
/Exercise/Sumvector/Denes/Subscription:
|
||
6 years ago
|
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
|