petersmithca / humhub-api

Implements a JSON RESTful API for HumHub
27 stars 16 forks source link

Adding an integrated REST Client #45

Closed zikwall closed 7 years ago

zikwall commented 7 years ago

You can think of embedding the client's REST in the API module, using the example of this module: Yii2 REST Client

And add it as a child module:


'id' => 'api',
    'class' => 'humhub\modules\api\Module',
    'namespace' => 'humhub\modules\api',
    'controllerNamespace' => 'humhub\modules\api',
    'bootstrap' => ['rest'],
    'modules' => [
        'rest' => [
            'class' => 'humhub\modules\api\modules\rest\Module',
            'name' => 'My Rest Client',
            'baseUrl' => 'http://localhost/api/api',
        ],
    ],

and go to URL: site.net/api/rest

UPD:

There was a misunderstanding, the module is no longer supported, it's a pity ...

petersmithca commented 7 years ago

Sorry, I no longer have the time to work on/support this module. Feel free to fork it.