You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a novice here. I just started with the Laravel framework not long ago.
I'm using Laravel 5.1 and PHP 5.5.9-1ubuntu4.14 so the library is compatible.
I followed the instructions to install from the Dingo docs. I finally finished the setup and I end up with this error code when I visit my virtual host - "https://api.tapecm.com/v1/test". It should be returning { 'message': 'test' }.
I'm going to try to include as much relevant information in this first post as possible.
Route:
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->get('test', function () {
return 'test';
});
});
I have these third party providers. The only configured one is my MongoDB connection.
/*
* Third Party
*/
// MongoDB
Jenssegers\Mongodb\MongodbServiceProvider::class,
// OAuth2
LucaDegasperi\OAuth2Server\Storage\FluentStorageServiceProvider::class,
LucaDegasperi\OAuth2Server\OAuth2ServerServiceProvider::class,
// Dingo API
Dingo\Api\Provider\LaravelServiceProvider::class,
// Proxify
Cellcote\LaravelProxify\ApiProxyServiceProvider::class,
Apache api.tapecm.com-ssl.conf directory definition:
<Directory "/var/www/tapapi.com/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Only minor problem is configtest fails.
AH00526: Syntax error on line 53 of /etc/apache2/sites-enabled/api.tapecm.com-ssl.conf:
SSLCertificateKeyFile: file '/etc/ssl/private/www.tapecm.com.key' does not exist or is empty
What do I need to do?
EDIT: I'm accessing the wrong URI. I've been putting v1 into the URI. I changed it to /api and it's working...
The text was updated successfully, but these errors were encountered:
I'm a novice here. I just started with the Laravel framework not long ago.
I'm using Laravel 5.1 and PHP 5.5.9-1ubuntu4.14 so the library is compatible.
I followed the instructions to install from the Dingo docs. I finally finished the setup and I end up with this error code when I visit my virtual host - "https://api.tapecm.com/v1/test". It should be returning { 'message': 'test' }.
I'm going to try to include as much relevant information in this first post as possible.
Route:
Response:
I have these third party providers. The only configured one is my MongoDB connection.
Apache api.tapecm.com-ssl.conf directory definition:
<Directory "/var/www/tapapi.com/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Only minor problem is configtest fails.
AH00526: Syntax error on line 53 of /etc/apache2/sites-enabled/api.tapecm.com-ssl.conf:
SSLCertificateKeyFile: file '/etc/ssl/private/www.tapecm.com.key' does not exist or is empty
What do I need to do?
EDIT: I'm accessing the wrong URI. I've been putting v1 into the URI. I changed it to /api and it's working...
The text was updated successfully, but these errors were encountered: