library silverstripe-api
API controller and model serialization for silverstripe
tom-alexander/silverstripe-api
API controller and model serialization for silverstripe
- Tuesday, August 25, 2015
- by Tom-Alexander
- Repository
- 1 Watchers
- 2 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
silverstripe-api
Usage
Use SerializableExtension
to provide a model with the required serialization API., (*1)
FooPage:
extensions:
- SerializableExtension
FooPage extends Page
{
}
FooPage_Controller extends ApiController
{
}
You can specify the transformer or serializer for a particular model using the config:, (*2)
FooPage:
transformer: MyCustomTransformer
serializer: MyCustomSerializer
Access control
Access control is implemented through the Member system, (*3)
dev-master
9999999-dev
API controller and model serialization for silverstripe
Sources
Download
MIT
The Requires
by
Tom Alexander