Fitness

Nick Jennings ni.nosp@m.ck@silverbu.nosp@m.cket.net

Version:0.0.4

This module stores fitness related data, such as body measurements, excersize activity, etc.

Summary
FitnessNick Jennings ni.nosp@m.ck@silverbu.nosp@m.cket.net
Functions
removeRemove the record, as specified by ID.
createAdd a new record.
updateUpdate an existing record.
getGet a record by ID

Functions

remove

remove: function (id)

Remove the record, as specified by ID.

Parameters

idID of record to remove

Returns

return a promise which is resolved upon successful deletion of record.

create

create: function (obj)

Add a new record.

Parameters

objthe JSON object to use

Returns

return a promise which is resolved with the saved object upon completion (with fields `id` and `date_created` etc.)

update

update: function (obj)

Update an existing record.

Parameters

objthe JSON object to use (must contain existing ID)

Returns

return a promise which is resolved with the updated object upon completion

get

get: function (id)

Get a record by ID

Parameters

idID of record to fetch.

Returns

return a promise which is resolved with the desired object if it exists.

remove: function (id)
Remove the record, as specified by ID.
create: function (obj)
Add a new record.
update: function (obj)
Update an existing record.
get: function (id)
Get a record by ID
Close