Tyler Renelle
|
449ea620af
|
mongoose WIP: use mongoose in API routes, instead of Racer. Add mongoose middleware to perform proper Derby <-> API transformations. some safe-guarding of PUT /user paths, send error messages if they're using the old way. remove task deletion & addition from PUT /user
|
2013-08-24 18:52:29 -04:00 |
|
Tyler Renelle
|
319c2667d7
|
some sloppy mocha tests for corrupt task handling
|
2013-08-15 00:28:27 -04:00 |
|
Tyler Renelle
|
0d83ac09fc
|
api; on batch-update, override res.send & res.json to call the series
callback instead, and simply skip error paths. we need to send down the
error eventually
|
2013-08-14 21:50:17 -04:00 |
|
Tyler Renelle
|
66bdd3616e
|
API utility sendResult function, new POST /api/v1/register route to register new uname/pass users (i'm thinking about nixing facebook altogether in the future)
|
2013-08-14 19:35:14 -04:00 |
|
Tyler Renelle
|
d17bd6fe90
|
api: export all of api to functions, called by route. This way we can have our /batch-update route access the api functions
|
2013-08-11 00:47:40 -04:00 |
|
Tyler Renelle
|
e667b3a2b0
|
start adding v2 api tests (nothing here yet)
|
2013-08-08 14:04:07 -04:00 |
|
Tyler Renelle
|
8e922bb151
|
API: add facebook auth route
|
2013-07-12 17:15:11 -04:00 |
|
Tyler Renelle
|
704a056c47
|
Merge remote-tracking branch 'switz/api-authentication' into develop
Conflicts:
src/server/api.coffee
test/api.mocha.coffee
|
2013-07-12 16:36:12 -04:00 |
|
Tyler Renelle
|
f0c50e1cfe
|
fix api + tests
|
2013-05-25 19:42:59 +01:00 |
|
Tyler Renelle
|
62c9e45e2e
|
habitrpg-shared: use newUser from shared helpers instead of in character.coffee
|
2013-05-24 11:34:17 +01:00 |
|
Tyler Renelle
|
32cf11b533
|
use lodash in tests for consistency
|
2013-05-23 17:34:27 +01:00 |
|
Daniel Saewitz
|
3680900577
|
API Auth working + 1 test
|
2013-04-21 11:53:36 -04:00 |
|
Tyler Renelle
|
88d2eee519
|
start adding tests for user.put
|
2013-04-12 16:38:07 -04:00 |
|
Rob Scanlon
|
4958690bcb
|
update a test to check for undefined value when making new habit
|
2013-04-04 18:09:06 -04:00 |
|
Daniel Saewitz
|
355dde07f4
|
Array to /user/tasks
|
2013-03-22 16:52:33 -04:00 |
|
Daniel Saewitz
|
b56bc6b1d9
|
Mark todos and dailies as completed via api
|
2013-03-22 16:01:40 -04:00 |
|
Daniel Saewitz
|
81b14cfac6
|
Add alternate scoreTask
|
2013-03-20 16:52:32 -04:00 |
|
Tyler Renelle
|
e51cf0089e
|
typo test/api.mocha.coffee
|
2013-03-12 17:52:44 -07:00 |
|
Daniel Saewitz
|
188e4ff271
|
Remove one id from array of typeIds instead of rewriting whole array
|
2013-03-09 09:14:07 -05:00 |
|
Rob Scanlon
|
2111cca09a
|
Delete task for the API tests
|
2013-03-09 02:08:50 -05:00 |
|
Daniel Saewitz
|
7cb291c4de
|
Rename user.stats.tnl to user.stats.toNextLevel
|
2013-03-06 20:39:48 -05:00 |
|
Daniel Saewitz
|
5141aeda78
|
Fix broken tnl test
|
2013-03-06 19:59:19 -05:00 |
|
Daniel Saewitz
|
5a1343a3b7
|
Set maxHealth to 50
|
2013-03-06 09:11:14 -05:00 |
|
Daniel Saewitz
|
ef7d705059
|
Add to next level to user stats on API
|
2013-03-06 08:45:51 -05:00 |
|
Daniel Saewitz
|
4377ff918a
|
Prepend /user to the /task/:id routes
|
2013-03-01 15:11:35 -05:00 |
|
Daniel Saewitz
|
33b529731c
|
Remove extra query
|
2013-03-01 06:03:05 -05:00 |
|
Daniel Saewitz
|
4e6c741594
|
Shouldn't update type in task PUT
|
2013-03-01 05:48:49 -05:00 |
|
Daniel Saewitz
|
c080ddc683
|
Separate out logic for tasks plus specs
|
2013-03-01 05:16:55 -05:00 |
|
Tyler Renelle
|
26de70c17c
|
temporary set session so we can save new user in tests
|
2013-02-28 20:42:52 -05:00 |
|
Tyler Renelle
|
3017f5a592
|
small test tweaks
|
2013-02-28 18:24:14 -05:00 |
|
Tyler Renelle
|
9c6e061e8d
|
return all objects on user API call
|
2013-02-27 17:10:20 -05:00 |
|
Tyler Renelle
|
4b2b0281ee
|
add nconf to test
|
2013-02-27 17:06:47 -05:00 |
|
Daniel Saewitz
|
8ba137d3ce
|
Remove config and scoring
|
2013-02-27 16:58:57 -05:00 |
|
Daniel Saewitz
|
822f779812
|
Merge and fix tests
|
2013-02-26 19:17:11 -05:00 |
|
Daniel Saewitz
|
c38f215db5
|
Add type parameter to /user/tasks
|
2013-02-26 16:44:26 -05:00 |
|
Daniel Saewitz
|
bc5abba179
|
Add task/:id PUT
|
2013-02-26 15:21:17 -05:00 |
|
Daniel Saewitz
|
07648cd60b
|
all tests passing - woo
|
2013-02-26 03:48:10 -05:00 |
|
Daniel Saewitz
|
52c5444453
|
Remove second store
|
2013-02-26 02:56:47 -05:00 |
|
Daniel Saewitz
|
17a5040b3b
|
Server runs inline with tests
|
2013-02-26 02:55:33 -05:00 |
|
Daniel Saewitz
|
f9f57a6b91
|
Cleanup and more checks
|
2013-02-26 02:36:51 -05:00 |
|
Daniel Saewitz
|
e4f4227072
|
Cleanup
|
2013-02-25 14:32:46 -05:00 |
|
Daniel Saewitz
|
7ce7677816
|
Cleanup
|
2013-02-25 02:44:57 -05:00 |
|
Daniel Saewitz
|
1be9fb97fe
|
Use headers instead of auth
|
2013-02-25 02:43:50 -05:00 |
|
Daniel Saewitz
|
bfd30cd4b7
|
wip
|
2013-02-25 00:24:11 -05:00 |
|
Daniel Saewitz
|
faa94b3692
|
Almost perfect
|
2013-02-24 23:00:22 -05:00 |
|
Daniel Saewitz
|
bddd0bd148
|
wip
|
2013-02-23 04:45:00 -05:00 |
|
Daniel Saewitz
|
177c7e4f17
|
Working again
|
2013-02-23 03:20:16 -05:00 |
|
Daniel Saewitz
|
4358455ef2
|
update
|
2013-02-22 22:24:21 -05:00 |
|
Daniel Saewitz
|
e557bf89a7
|
Status test
|
2013-02-22 13:56:24 -05:00 |
|
Daniel Saewitz
|
9f044d2cf4
|
tests
|
2013-02-22 13:54:35 -05:00 |
|