3069 Posts in 868 Topics by 650 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1057 Views |
-
RestfulServer and custom classes?

29 April 2009 at 2:31am Last edited: 29 April 2009 2:32am
Hello!
I'm experimenting with the restfulserver (http://doc.silverstripe.org/doku.php?id=restfulserver) to manipulate the "Member" object and I think it would be useful for my project, however I'd like to avoid any modifications to the actual SS core files and keep my changes to code in "mysite".
Is this possible?
regards,
Mange -
Re: RestfulServer and custom classes?

11 May 2009 at 8:32pm
You can subclass RestfulServer and use custom routing:
Director::addRules(100, array(
'api/v1//Member => 'CustomMemberRestfulServer'
));For adding properties to the built-in Member class, read up about DataObjectDecorator
| 1057 Views | ||
|
Page:
1
|
Go to Top |


