Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (25 loc) · 905 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 905 Bytes

accelerometer-rest-to-cassandra

REST API receiving accelorometers data and storing them into Cassandra. Each acceleration contains:

  • date when it has been captured as a timestamp (eg, 1428773040488)
  • acceleration force along the x axis (unit is m/s²)
  • acceleration force along the y axis (unit is m/s²)
  • acceleration force along the z axis (unit is m/s²)

Prerequisites

Start the application

gradle build && java -jar build/libs/accelerometer-rest-to-cassandra-1.0.jar

Use the API

{
  "timestamp": 1428773040488,
  "x": 0.98,
  "y": 6.43,
  "z": 9.01,
}
  • returned status: 201 CREATED