Commit Graph

8 Commits

Author SHA1 Message Date
Robbie Averill
b3fc6803fd FIX Return string directly when no body content is provided to put/post methods 2017-11-17 13:55:08 +13:00
Robbie Averill
cb92696392 FIX Ensure a Member object is passed to canView etc methods if available 2017-11-03 10:20:45 +13:00
helpfulrobot
96f868dbf5 Converted to PSR-2 2015-11-21 19:21:34 +13:00
Hamish Friedlander
af652463f1 FIX Defaulting to stage mode
If you exposed Page instances through RestfulServer, the default
Versioned stage would be Stage, rather than Live.
2013-07-05 10:22:21 +12:00
Daniel Hensby
687fac83f7 NEW Support for other authenticators
I've added the ability to add other authenticators to the RestfulServer

Use the config system to change the authenticator option and it'll call
'authenticate' on that class.

I've assumed that one won't need any parameters sent to that and
everything can be taken from `Controller::curr()->request`

This relies on the default authenticator being able to accept the
standard email/password identifiers. I imagine anyone using a default
authenticator to that will go to the trouble of adding a RestfulServer
authenticator too.
2013-05-01 15:52:55 +01:00
Ingo Schommer
746ff0f823 Line length fixes (no logic changes) 2012-10-31 00:23:29 +01:00
Ingo Schommer
9732ec8932 API Added canView() checks to record listing logic
In preparation for removal of those checks from the underlying
JSONDataFormatter and XMLDataFormatter implementations in core,
which shouldn't deal with these kinds of model concerns.
2012-10-31 00:14:46 +01:00
Ingo Schommer
90bfa5eac6 MINOR Initial commit 2012-06-04 10:14:02 +02:00