A RESTful API package for the Laravel framework.
Questions tagged [dingo-api]
197 questions
0
votes
1 answer
Laravel Dingo/Api Doctrine
I use Laravel with Dingo/Api to build a RESTful API (https://github.com/dingo/api)
I use Doctrine2 instead of Eloquent ORM (https://github.com/laravel-doctrine/orm)
The entities are generated from XML-Annotations
I'm in struggle because Dingo…

Simon Hagmann
- 141
- 1
- 12
0
votes
2 answers
Route [test.index] not defined?
I have Dingo API.
This is my routes.php file:
Route::resource('test','TestController');
$api = app('api.router');
$api->version('v1',['prefix' => 'api'], function ($api) {
$api->resource('user',…

Warz
- 333
- 3
- 11
0
votes
1 answer
Create multiple @Request in Laravel Dingo API Blueprint Docs
It seems that Lavarel Dingo API Blueprint documentation allows to create multiple requests examples. In the docs there is an "identifier", which leads me to believe that you can have multiple examples... What is the syntax to document multiple…

Funtriaco Prado
- 319
- 1
- 3
- 11
0
votes
1 answer
Using Lumen + Dingo + JWT without Lumen/Laravel Session
We are using a Lumen/Dingo implementation based on the following repo lumen-dingo. We are building this on top of an existing framework and this brings some minor problems with it.
Our framework usses its own session object, all throughout the…

Saif Bechan
- 16,551
- 23
- 83
- 125
0
votes
1 answer
Laravel 5 + DingoApi paginate
i'm developing an api with Laravel and DingoAPI which returns the message threads of the user with pagination.
$threads = Thread::forUser($currentUserId)->latest('updated_at')->simplePaginate(1);
return API::response()->array($threads);
and i get…

Mushu8
- 173
- 1
- 13
0
votes
1 answer
Dingo API Internal Post Requests not working with Laravel 5.2
I am running into an issue with internal post requests using latest Laravel 5.2 and Dingo dev/master (commit 904d4e4e). Get requests work fine, but I keep getting a 'missing argument 1' error exception when I attempt any post request from anywhere…

DonnaJo
- 538
- 6
- 15
0
votes
2 answers
Laravel + Dingo + JWT + cors and OPTIONS method
On my Laravel installation, I have set up Dingo API along with JWT-Auth by tymondesigns and Laravel-cors by barryvdh.
This is the process of logging in and retrieving data from the front end (which is hosted on a different server):
POST credentials…

Bravi
- 713
- 2
- 8
- 29
0
votes
2 answers
Dingo API, use Database Query Builder
Does anyone know how can I use the Eloquent Query Builder with Dingo API ?
Using Eloquent out of the box, it is working great :
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$capsule->addConnection([ ...…

YouHieng
- 156
- 1
- 4
0
votes
2 answers
Dingo in Laravel 5.2 doesn't work
I have similar issue with this one: Install Dingo in Laravel 5.2 and get error when call the api
And I still don't know the answer.
I have tried this: https://github.com/dingo/api/wiki/Configuration to setup my Dingo. When I try to access the API,…

Ivan Kurniawan Prasetyo
- 43
- 1
- 4
0
votes
1 answer
Dingo api not registering routes
Hi i'm using Dingo Api dev-master b36db17 (1.0.*@dev) with Laravel 5.2.11
When i try to acces my api routes i get an error :
"The version given was unknown or has no registered routes." (status:400)
here is my api route:
$api =…

Mushu8
- 173
- 1
- 13
0
votes
1 answer
dingo\api $api router instance in routes.php causes an error
Argument 2 passed to Dingo\Api\Exception\Handler::__construct() must be of the type array, null given, called in C:\wamp\www\clientdata\vendor\dingo\api\src\Provider\ApiServiceProvider.php on line 125 and defined in Handler.php line 53
I randomly…
user3919287
0
votes
1 answer
How do I customize the default 404 response with Dingo API and Lumen framework
I am building a REST API using Lumen framework and the Dingo API library. Everything works well except that I don't know how I can customize the default 404 response done by Dingo when no route matches.
My route.php file looks like this…

MaxiWheat
- 6,133
- 6
- 47
- 76
0
votes
0 answers
Route in dingo not work when make Api with dingo/api and laravel 5.1
I am making a test api with dingo and laravel 5.1 but i don't know why my code do not work as i expected. This is just a simple example but it's not work, please help me. This is my route code:
$api =…

duong khang
- 342
- 1
- 4
- 19
0
votes
0 answers
Laravel Service Provider
I used to have a modified version of Dingo service provider (I'm using Laravel 4.2) that works beautifully. However after a while (several composer update) I can't seem to get it working anymore. It is simply not registered. I even tried to put some…

Don Djoe
- 705
- 1
- 10
- 21
0
votes
2 answers
Laravel Dingo JWT
I am currently coding an API in Laravel with Dingo and JWT as its authentication
It works fine, and I have set Dingo config to protected, so a valid JWT token will always need to be there, otherwise it will fail with 401 error. Again it works…

Don Djoe
- 705
- 1
- 10
- 21