Beginning implementation of the planned API endpoints.

This commit is contained in:
2019-02-19 02:50:07 -06:00
parent a16ef81077
commit e3450d5f8f
6 changed files with 130 additions and 31 deletions

View File

@@ -3,10 +3,10 @@ Personal Measure API
### Measure
☐ GET /measure Get a list of all defined measures for this user.
☐ POST /measure Create a new measure (post the definition).
☐ GET /measure/<measure-slug> Get the definition for a specific measure.
☐ DELETE /measure/<measure-slug> Delete a measure (and all values associated with it).
☐ GET /measures Get a list of all defined measures for this user.
☐ POST /measures Create a new measure (post the definition).
☐ GET /measures/<measure-slug> Get the definition for a specific measure.
☐ DELETE /measures/<measure-slug> Delete a measure (and all values associated with it).
### Values
@@ -18,9 +18,11 @@ Personal Measure API
### Auth
GET /auth-token Given a valid username/password combo, get an auth token.
GET /user Given a valid auth token, return the user details.
PSOT /app-token With a valid session, create a new app token.
GET /auth-token Given a valid username/password combo, get an auth token.
GET /user Given a valid auth token, return the user details.
GET /api-tokens List api tokens.
☐ DELETE /api-tokens/<id> Delete a specific api token.
☐ POST /api-tokens With a valid session, create a new api token.
Legend
------