@@ -15,18 +15,18 @@ the process of define a new endpoint pretty straightforward.
1515The easiest way to install this package is by using composer from your terminal:
1616
1717``` bash
18- composer require moxie-lean /wp-endpoint
18+ composer require nolte /wp-endpoint
1919```
2020
2121Or by adding the following lines on your ` composer.json ` file
2222
2323``` json
2424"require" : {
25- "moxie-lean /wp-endpoint" : " dev-master"
25+ "nolte /wp-endpoint" : " dev-master"
2626}
2727```
2828
29- This will download the files from the [ packagist site] ( https://packagist.org/packages/moxie-lean /wp-endpoint )
29+ This will download the files from the [ packagist site] ( https://packagist.org/packages/nolte /wp-endpoint )
3030and set you up with the latest version located on master branch of the repository.
3131
3232After that you can include the ` autoload.php ` file in order to
@@ -42,7 +42,7 @@ After you added the dependency on your module you need to create a new class tha
4242
4343``` php
4444<?php
45- use Lean \AbstractEndpoint;
45+ use Nolte \AbstractEndpoint;
4646
4747class customEndpoint extends AbstractEndpoint {
4848
@@ -98,9 +98,9 @@ For instance to define a new slug parameter with a different HTTP verb and reuse
9898There is also an abstract class available for collections.
9999
100100``` php
101- <?php namespace Lean \Endpoints;
101+ <?php namespace Nolte \Endpoints;
102102
103- use Lean \AbstractCollectionEndpoint;
103+ use Nolte \AbstractCollectionEndpoint;
104104
105105class MyCollection extends AbstractCollectionEndpoint {
106106
@@ -130,7 +130,7 @@ class MyCollection extends AbstractCollectionEndpoint {
130130
131131### Filters
132132
133- - ` ln_endpoints_api_namespace ` , This allow you to overwrite the default namespace used on the API definition.
134- - ` ln_endpoints_api_version ` , This filter allow you to change the version number of the API.
135- - ` ln_endpoints_data_ ${api}` , where ` ${api} ` is the name of your endpoint for instance in the case above: ` ln_endpoints_data_customEndpoint ` .
136- - ` ln_endpoints_collection_item ` , to do custom formatting for collection items.
133+ - ` nolte_endpoints_api_namespace ` , This allow you to overwrite the default namespace used on the API definition.
134+ - ` nolte_endpoints_api_version ` , This filter allow you to change the version number of the API.
135+ - ` nolte_endpoints_data_ ${api}` , where ` ${api} ` is the name of your endpoint for instance in the case above: ` nolte_endpoints_data_customEndpoint ` .
136+ - ` nolte_endpoints_collection_item ` , to do custom formatting for collection items.
0 commit comments