@@ -21,12 +21,6 @@ You then need to load the plugin. You can use the shell command:
2121bin/cake plugin load Muffin/Webservice
2222```
2323
24- or by manually adding statement shown below to your app's ` Application::bootstrap() ` method:
25-
26- ``` php
27- $this->addPlugin('Muffin/Webservice');
28- ```
29-
3024## Usage
3125
3226### As an ORM
@@ -35,15 +29,13 @@ $this->addPlugin('Muffin/Webservice');
3529
3630``` php
3731<?php
38-
3932namespace App\Webservice\Driver;
4033
4134use Cake\Network\Http\Client;
4235use Muffin\Webservice\AbstractDriver;
4336
4437class Articles extends AbstractDriver
4538{
46-
4739 /**
4840 * Initialize is used to easily extend the constructor.
4941 */
@@ -60,7 +52,6 @@ class Articles extends AbstractDriver
6052
6153``` php
6254<?php
63-
6455namespace App\Webservice;
6556
6657use Muffin\Webservice\Query;
@@ -69,7 +60,6 @@ use Muffin\Webservice\Webservice\Webservice;
6960
7061class ArticlesWebservice extends Webservice
7162{
72-
7363 /**
7464 * Executes a query with the read action using the Cake HTTP Client
7565 */
@@ -92,37 +82,32 @@ class ArticlesWebservice extends Webservice
9282
9383``` php
9484<?php
95-
9685namespace App\Model\Endpoint;
9786
9887use Muffin\Webservice\Model\Endpoint;
9988
10089class ArticlesEndpoint extends Endpoint
10190{
102-
10391}
10492```
10593
10694#### Create a resource (optional)
10795
10896``` php
10997<?php
110-
11198namespace App\Model\Resource;
11299
113100use Muffin\Webservice\Model\Resource;
114101
115102class Article extends Resource
116103{
117-
118104}
119105```
120106
121107#### Use it
122108
123109``` php
124110<?php
125-
126111namespace App\Controller;
127112
128113use Cake\Event\Event;
@@ -191,7 +176,7 @@ http://github.com/usemuffin/webservice/issues
191176
192177## License
193178
194- Copyright (c) 2015, [ Use Muffin] and licensed under [ The MIT License] [ mit ] .
179+ Copyright (c) 2015-Present , [ Use Muffin] and licensed under [ The MIT License] [ mit ] .
195180
196181[ cakephp ] :http://cakephp.org
197182[ composer ] :http://getcomposer.org
0 commit comments