Request Type | Params | Description |
---|---|---|
GET | /:token | Returns repeating items for user |
GET | /:token/:itemID | Returns repeating item with itemID for user |
POST | /:token | create repeating item for user |
PATCH | /:token/:itemID | update repeating item for user |
DELETE | /:token/:itemID | delete repeating item for user |
Name | Type | Required | Note |
---|---|---|---|
title | String | true | maxLength: 128 |
streakStart | Date | false | default: Date.now |
description | Number[] | false | maxLength: 520 |
interval | RepeatingInterval.schema | True | |
phase | Number | false | default: 1, current index in interval.days[] |
Request Type | Params | Description |
---|---|---|
GET | / | Returns global repeating intervals |
GET | /:token | Returns repeating intervals for the given user |
GET | /:token/:intervalID | Returns repeating interval with specified for the given user |
POST | /:token | Create repeating interval for user |
PATCH | /:token/:intervalID | update repeating interval for user |
DELETE | /:token/:intervalID | delete repeating interval for user |
Name | Type | Required | Note |
---|---|---|---|
title | String | true | maxLength: 128 |
description | String | false | maxLength: 520 |
days | Number[] | True | "Array of number of days before next notification." |
Request Type | Params | Description |
---|---|---|
GET | redirects to google login | |
GET | /google/callback | not used by user, required for google login |
GET | /logout/:token | logs out user with specified token |
Request Type | Params | Description |
---|---|---|
GET | /name/:token | Returns username |
GET | /photo/:token | Returns photo |
GET | /status/:token | Returns user status ("Logged In" or "Logged Out") |
Request Type | Params | Description |
---|---|---|
GET | / | Returns session ID |