2017 © Pedro Peláez
 

library lp-rest

Зависимость для работы с REST АПИ для Lumen | Laravel

image

venya/lp-rest

Зависимость для работы с REST АПИ для Lumen | Laravel

  • Wednesday, July 11, 2018
  • by vench
  • Repository
  • 1 Watchers
  • 0 Stars
  • 264 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 58 Versions
  • 0 % Grown

The README.md

Lp api rest

This package allows you to create a simple REST API on the basis of standard models (Eloquent) of the Larave 5.x Framework., (*1)

install

  • composer require venya/lp-rest

Configure

  • Add app.php, (*2)

    $app->register(LpRest\RestServiceProvider::class);
    
    //$app->register(LpRest\RestServiceProviderLumen::class); //for Lumen
  • Add in AppServiceProvider::register, (*3)

    //Set model aliases
    app()->afterResolving(CommonRepositoryModelProvider::class, 
            function(CommonRepositoryModelProvider $mp) {              
          $mp->addModelAliases('user', \App\User::class);
      });               
    
    //Change access provider
    $this->app->bind(CommonRepositoryAccessProvider::class, ApiAccessProvider::class );   
    
    //Change response schema   
    $this->app->bind(CommonResponse::class, ApiCustomResponse::class ); 
    
    //Custom routes and etc  
    $this->app->afterResolving(RestServiceHelper::class,
                function(RestServiceHelper $sp) {
                    $sp->setRouteGroupOptions([
                        'prefix'         => 'api/rest',
                        //'middleware'     => 'auth',
                    ]);
                });  

API

  • GET /api/rest/:modelName[/:relations] - get all items
  • GET /api/rest/:modelName/:id[/:relations] - get one item
  • POST /api/rest/:modelName {:json body} - create item
  • PUT /api/rest/:modelName/:id {:json body} - update item
  • DELETE /api/rest/:modelName/:id - remove item
  • POST /api/rest/:modelName/:id {:json body - arguments} - Call model method
  • POST /api/rest/multi {:json body - config any query} - Causes several methods at a time

TODO FILTER DESCRIPTION

  • /api/rest/file?filter[]=created_at:range:2018-03-01,2018-05-20&filter[]=tags.id:1&filter[]=id:in:1,2,3,18

The Versions

11/07 2018

dev-master

9999999-dev

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

11/07 2018

1.2.0

1.2.0.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

27/03 2018

1.1.18

1.1.18.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/03 2018

1.1.17

1.1.17.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/03 2018

1.1.16

1.1.16.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.15

1.1.15.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.14

1.1.14.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.13

1.1.13.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.12

1.1.12.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.11

1.1.11.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/03 2018

1.1.10

1.1.10.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.9

1.1.9.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.8

1.1.8.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.7

1.1.7.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.6

1.1.6.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.5

1.1.5.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.4

1.1.4.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.3

1.1.3.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.2

1.1.2.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/03 2018

1.1.1

1.1.1.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

20/03 2018

1.1.0

1.1.0.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

13/03 2018

1.0.14

1.0.14.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

13/03 2018

1.0.13

1.0.13.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

13/03 2018

1.0.12

1.0.12.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

13/03 2018

1.0.11

1.0.11.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

13/03 2018

1.0.10

1.0.10.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.9

1.0.9.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.8

1.0.8.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.5

1.0.5.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.4

1.0.4.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.3

1.0.3.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.2

1.0.2.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

12/03 2018

1.0.1

1.0.1.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

29/01 2018

0.2.5

0.2.5.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

29/01 2018

0.2.4

0.2.4.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

29/01 2018

0.2.3

0.2.3.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

29/01 2018

0.2.2

0.2.2.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

08/09 2017

0.2.1

0.2.1.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

08/09 2017

0.2.0

0.2.0.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

31/08 2017

0.1.2

0.1.2.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

31/08 2017

0.1.1

0.1.1.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

24/08 2017

0.0.20

0.0.20.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/08 2017

0.0.16

0.0.16.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/08 2017

0.0.15

0.0.15.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/08 2017

0.0.14

0.0.14.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

23/08 2017

0.0.13

0.0.13.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

22/08 2017

0.0.12

0.0.12.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.11

0.0.11.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.10

0.0.10.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.9

0.0.9.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.8

0.0.8.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.7

0.0.7.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.6

0.0.6.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.5

0.0.5.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.3

0.0.3.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.4

0.0.4.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.2

0.0.2.0

Зависимость для работы с REST АПИ для Lumen | Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya

21/08 2017

0.0.1

0.0.1.0

Зависимость для работы с REST АПИ для Laravel

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

by Venya