Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * all dates show just the date format `yyyy-mm-ddThh:mm:ss.ffffff`
- GET /api/v1.0/dashboard/{email}/{code}
- Request: -
- Response:
- {
- // Message, that should be displayed on the top of the screen
- // Click on this message will lead the user to the chosen type of measurement
- // (according to situation)
- //
- // May be:
- // - Update Measurement (no measurements for long time)
- // - Congrats (some achievements)
- // - Message that motivates to do measurement
- // (like good morning, or time to measurement)
- "topMessage": {
- "title": "Update Measurement",
- "message": "Last updated 14 May, 2019",
- "situation": "O",
- "icon": "http://icons.iconarchive.com/icons/papirus-team/papirus-status/256/dialog-error-icon.png"
- },
- // Last measurement submitted by current user
- // NOT the same model as in response to `GET .../measurement/...`
- // If there are no measurements, just leave this field as null
- "lastMeasurement": {
- "id": 1,
- "date": "2019-02-07T12:00:00",
- "situation": "O",
- "stressScore": 8,
- "stressScoreLabel": "Veel stress"
- },
- // Data to display on dashboard tiles
- // If there are no measurements for this situation,
- // just leave `recoveryIndices` list empty (NOT null)
- //
- // "recoveryIndices": [], // YES
- // "recoveryIndices": null, // NO
- "recentMeasurements": [
- {
- "situation": "O",
- "recoveryIndices": [
- 56,
- 45,
- 78,
- 12
- ]
- },
- {
- "situation": "R",
- "recoveryIndices": []
- },
- {
- "situation": "E",
- "recoveryIndices": [
- 34
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement