Andrew Richardson
b13f1c8ff5
Fixed issues with acl.js caused by a weird merge resolution
2014-03-10 23:15:13 -07:00
Andrew Richardson
2e8ba19eca
Fixed user ID in scripts
2014-03-10 23:15:13 -07:00
Christopher Van
1dc47fdf73
add command-line script for adding/removing users from ACL groups ( fixes #82 )
2014-03-10 23:15:13 -07:00
Christopher Van
138fa3616c
link to docs @ /
2014-03-10 21:27:18 -07:00
Christopher Van
1505860811
deploy on stackato ( fixes #136 )
2014-03-10 20:53:56 -07:00
soedar
a5d3b3348e
Merge pull request #134 from soedar/featured-fix
...
Updated featured endpoint to use game id instead of slug (Unblocks #132 )
2014-03-10 17:08:51 +08:00
soedar
9425ef63f5
Updated featured endpoint to use game id instead of slug (Unblocks #132 )
2014-03-10 17:08:04 +08:00
soedar
dcbcf4fedb
Fixed a 🍟 on lib/game.js
2014-03-09 23:59:55 +08:00
soedar
88ece17cc1
Merge pull request #118 from cvan/game-details
...
Updated game submission and edit endpoints to use json blob.
2014-03-05 19:06:31 +08:00
soedar
c53f2b52ff
Fixed comments, and ensure that required fields cannot be empty set. ( Fixes #95 #105 #114 #115 )
2014-03-05 19:00:03 +08:00
soedar
517652fe4b
Updated game submission and edit endpoints to accept json blob ( #95 #105 #114 #115 )
2014-03-05 18:57:40 +08:00
Tay Yang Shun
4a3f7a6f6c
Catch errors for invalid screenshots and videos URL in game submission.
2014-03-05 18:56:11 +08:00
Tay Yang Shun
f281bece8f
Modified README for new game submission and game detail format
2014-03-05 18:56:11 +08:00
Tay Yang Shun
5aea09e0f4
Changed icons key to icon
2014-03-05 18:56:11 +08:00
Tay Yang Shun
97ab074f9f
Decode media URL arguments before parsing
2014-03-05 18:56:11 +08:00
Tay Yang Shun
aef7bcc2b2
JSON format for screenshots and videos
2014-03-05 18:56:11 +08:00
soedar
e79baa6616
Merge pull request #120 from soedar/user-plugin
...
Modify featured endpoints to use the user view wrappers
2014-03-05 14:54:05 +08:00
Andrew Richardson
10218eca93
Merge pull request #121 from cvan/list-permissions-fix
...
Modified /game/list to return a 403 instead of a 401 on insufficient permissions
2014-03-04 17:36:08 -08:00
Andrew Richardson
b109f8deec
Updated unauthorized error code to be consistent
2014-03-04 17:35:35 -08:00
Andrew Richardson
96d967893a
Modified /game/list to return a 403 instead of a 401 on insufficient permissions
2014-03-04 12:01:11 -08:00
soedar
dfd34aafda
Modify featured endpoints to use the user view wrappers
2014-03-04 22:06:56 +08:00
Christopher Van
2cf70bdf6e
add waffle.io badge
2014-03-02 17:44:47 -08:00
Andrew Richardson
61b5a8dddf
Merge pull request #117 from cvan/moderate-fix
...
Changed the moderate endpoints to be POST
2014-02-28 19:23:56 -08:00
Andrew Richardson
d24f07313d
Updated usage comments
2014-02-28 19:20:08 -08:00
Andrew Richardson
5f6ad0d662
Merge pull request #100 from cvan/user-view
...
Added wrapper views to pre-fetch user ID / data
2014-02-28 19:12:10 -08:00
Andrew Richardson
55e84da1d5
Changed the moderate endpoints (ie. `/game/{slug}/{status}`) to be POST instead of GET
2014-02-28 12:22:06 -08:00
soedar
728ddd61d7
Merge pull request #104 from soedar/update-game
...
Modified updateGame function
2014-02-28 16:33:44 +08:00
soedar
e2d1f65402
Fixed changes from review ( Fixes #99 )
2014-02-28 16:30:37 +08:00
soedar
b62ab115a6
updateGame now accepts full object to be updated ( #99 )
2014-02-28 16:30:30 +08:00
CharlesChong
cc9e1133d9
Merge pull request #107 from CharlesChong/db-prefill-parameters(issue#106)
...
Moved db-prefill parameters to an external .json file
2014-02-27 15:28:56 -08:00
Charles Chong
3f16d516b5
Made .dist parameters version, updated default parameters
2014-02-27 08:47:07 -08:00
Andrew Richardson
e9a49ef8bb
Inlined a function
2014-02-26 21:30:27 -08:00
Andrew Richardson
3b41c941bc
Fixed unrelated style issues from feedback
2014-02-26 21:15:30 -08:00
Andrew Richardson
6431bfaaaf
Added documentation for wrapper views, and moved the result argument of each wrapper view to the front of the args list, using view.apply with the args list provided by redisView instead of hardcoding the args. This way arguments are never clobbered, and callers are free to ignore arguments at the end of the list.
2014-02-26 21:07:53 -08:00
Andrew Richardson
840b8ed32d
Added userDataView for fetching all user data, and adopted it where possible; refactored generation of user views to stay DRY
2014-02-26 21:07:53 -08:00
Andrew Richardson
53267c771e
Adopted userIDView for views that always need to fetch the user ID
2014-02-26 21:07:53 -08:00
Andrew Richardson
b4103656f3
Added userIDView to wrap restify endpoint handlers and pre-fetch user ID from the extracted email in the _user field
2014-02-26 21:07:53 -08:00
Andrew Richardson
eeece1120a
Merge pull request #109 from cvan/bug-squashing
...
Fixed a couple of bugs in user.js and list.js
2014-02-26 21:07:12 -08:00
Andrew Richardson
4633f66d29
Removed an unneeded closure
2014-02-26 21:05:52 -08:00
Andrew Richardson
4ca3057083
Fixed a couple of bugs:
...
- `getUserFromEmail` now returns an error if no user was found, which I believe is the correct behaviour, and added a check in `login.js` to account for this
- `list.js` now fetches the entire game object instead of the public object so it can check the game's `status` property correctly, then maps them to public objects when returning them as a response
2014-02-26 18:57:25 -08:00
soedar
6c01e454ca
Merge pull request #96 from soedar/featured
...
Featured Games API Endpoint
2014-02-27 00:26:54 +08:00
Charles Chong
2e601047a0
Moved db-prefill parameters to an external .json file and added it to the .gitignore file
2014-02-25 23:13:16 -08:00
soedar
cbe1a464dc
Updated featured endpoints from review ( Fixes #40 #41 )
2014-02-26 01:27:48 +08:00
Andrew Richardson
441e034772
Merge pull request #88 from cvan/automate-prefill
...
Enhanced db-prefill to spawn its own API and persona-faker instances
2014-02-24 18:07:19 -08:00
Andrew Richardson
41c780b9aa
Merge pull request #94 from cvan/auth-plugin
...
Added user SSA token verification plugin
2014-02-24 10:27:29 -08:00
Andrew Richardson
7da1ab82c8
Merged remote copy of auth-plugin to appease git so I can push the rebase with master
2014-02-24 10:08:22 -08:00
Andrew Richardson
dd9b2d7b18
Fixed a typo
2014-02-24 10:04:58 -08:00
Andrew Richardson
15965aff33
Moved _email to a root-level property on request, so that there's no risk of having it set by callers of the API
2014-02-24 10:04:58 -08:00
Andrew Richardson
d2f5026e2c
Style
2014-02-24 10:04:58 -08:00
Andrew Richardson
919118a743
Style fixes
2014-02-24 10:04:58 -08:00