Skip to content

Releases: bedita/web-tools

Release 3.1.3

25 Jun 14:25
c0f1532
Compare
Choose a tag to compare

Fix setting base url inApiProxyTrait when the URL of request was encoded.

Release 3.1.2

05 Jun 15:35
e578707
Compare
Choose a tag to compare

Fix issue with relationships mask.

Release 3.1.1

05 Jun 07:52
bfc999a
Compare
Choose a tag to compare

Fix ApiProxyTrait to avoid that every variable set for view is serialized in JSON output.

Release 2.4.2

05 Jun 15:37
2a022f0
Compare
Choose a tag to compare

Backport of fix in 3.1.2

Release 2.4.1

05 Jun 07:54
bfc6a2a
Compare
Choose a tag to compare

Backport of fix in 3.1.1 version

Release 1.4.2

05 Jun 15:38
d171d69
Compare
Choose a tag to compare

Backport of fix in 3.1.2

Release 1.4.1

05 Jun 07:55
9118e6b
Compare
Choose a tag to compare

Backport of fix in 3.1.1 version

Release 2.4.0

04 Jun 13:30
5cff5be
Compare
Choose a tag to compare

Backport of ApiProxyTrait to 2.x branch. See Release 3.1.0

Release 1.4.0

04 Jun 13:29
89d120e
Compare
Choose a tag to compare

Backport of ApiProxyTrait to 1.x branch. See Release 3.1.0

Release 3.1.0

03 Jun 13:41
b787be0
Compare
Choose a tag to compare

Main changes are:

  • introduction of ApiProxyTrait to easily proxy requests to BEdita4 API in a controller. Only GET request are supported for now.
    To enable it create a controller as

    use BEdita\WebTools\Controller\ApiProxyTrait;
    use App\Controller\AppController;
    
    class ApiController extends AppController
    {
        use ApiProxyTrait;
    }

    and define the routing rule

    $routes->scope('/api', ['_namePrefix' => 'api:'], function (RouteBuilder $routes) {
        $routes->get('/**', ['controller' => 'Api', 'action' => 'get'], 'get');
    });

    Then you can do requests to /api/* route (for example via GET /api/users) obtaining the raw json response from the API. In the response the URL of the API will be masked with the app URL.