A RESTful API package for the Laravel framework.
Questions tagged [dingo-api]
197 questions
0
votes
1 answer
How to reverse transform request from json api to proper data using Laravel, Lumen, Dingo, Ember Data?
I am using Lumen + Dingo + Ember JS
I am able to transform the response into JSON API. But when I post back the data from Ember, is it in same json api format. So I want to know is there any way to deform the json api data…

Gev Balyan
- 491
- 1
- 4
- 9
0
votes
2 answers
Add extra keys to responses in dingo/api Laravel package
I'm using dingo/api laravel package to create an API.
I want to add success key response to every API call. If we have an error, success: false and if all is OK, then success: true.
Final response must looks like this:
{
"success":true,
"data":…

Ahmad Badpey
- 6,348
- 16
- 93
- 159
0
votes
1 answer
How to make sure it's my frontend making the api calls
My backend and frontend are totally separated. One using Laravel 5.3 the other using VueJS 2.
My frontend doesn't need to authenticate users (public website). However my backend should be able to recognize that the API calls are being sent from my…

Hossein J
- 1,019
- 1
- 15
- 32
0
votes
1 answer
Laravel,Dingo Api and Node.js: Data is not passing
I have never worked with Dango Api.I am also new to node.js.I am trying to hit a link (Route) of my Laravel app with my Node.js.I am using Dango Api in my Laravel app.I heve tried to show data to the UI (node.js port) and print that data to…

Asm Arman
- 359
- 6
- 24
0
votes
0 answers
Dingo/api throttle 500 status code
When I use throttle middleware, the connection resets several times and finally responds with a 500 status code, and the connection closes.
This program works nicely on my local host, but when I upload it on my VPS, it returns the above error.
0
votes
1 answer
Laravel 5.2 Dingo API returning no records
I was wondering if someone could give me a bit of guidance.
Im following a tutorial on building an API with Laravel which is found here
https://www.sitepoint.com/how-to-build-an-api-only-jwt-powered-laravel-app/
which is working well, but the…

BigJobbies
- 3,633
- 11
- 43
- 66
0
votes
2 answers
Dingo/API when Unit Testing: The version given was unknown or has no registered routes
I built an API using dingo/api 0.10.0, Laravel 5.1 and lucadegasperi/oauth2-server-laravel": "^5.1".
All my routes work fine in Postman/Paw!
The problem appears when I try to test the API using PHPUnit.
This is part of my route-api.php…

musicvicious
- 1,043
- 16
- 21
0
votes
2 answers
Laravel Dingo API - How to respond with multiple collections / transformers?
To initialize my app I have the following route:
/initialize
This returns Taxonomies, Enumerables and a couple of other taxonomy like collections. This saves multiple HTTP requests.
Although with Dingo / Fractal, I cannot see how I can respond with…

AndrewMcLagan
- 13,459
- 23
- 91
- 158
0
votes
2 answers
Laravel Missing argument 4 for Dingo\Blueprint\Blueprint::generate()
[ErrorException]
Missing argument 4 for Dingo\Blueprint\Blueprint::generate(), called in…

marcello
- 1
0
votes
6 answers
Can't install Dingo with Laravel
I just removed my installed laravel folder in which I installed Dingo and JWT easily. Laravel version was 5.2.x.
Now, whenever I try to reinstall Dingo API it gives me error. Here is the list of commands I used:
Steps to Install
Install Laravel:…

Himanshu Shankar
- 735
- 1
- 6
- 24
0
votes
1 answer
Lumen/Dingo/Laravel Getting to the correct controller
I know this is kind of a sin, but I don't have any code to show, it is just that I completely hit a brick wall. My problem is the following.
I have a client that connects to a Lumen/Dingo Api. For all the requests it works great. For example:
My…

Saif Bechan
- 16,551
- 23
- 83
- 125
0
votes
0 answers
"Call to undefined method Closure::authenticate()" in dingo-API
"message": "Call to undefined method Closure::authenticate()",
"code": 1,
"status_code": 500,

Mayuri Pansuriya
- 934
- 6
- 13
0
votes
1 answer
laravel eloquent models one to many relationship with dingo transformer
my codes are constructed by Laravel+dingo.
I have two models which are one to many relationship:
Reservation.php (Master)
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Reservation extends Model
{
protected $table =…

Micole Chan
- 1
- 2
0
votes
2 answers
Post to Laravel API returns my GET request
I am trying to make a POST request from my Ionic Project in angular to my Laravel Dingo API. When I make the POST request in POSTMAN, it successfully creates a new record, but when I do it in Angularjs, it returns the response for the GET…

Justin
- 35
- 1
- 5
0
votes
1 answer
Laravel 5.2/Dingo API resource link in the response
I'm trying to use Dingo API to implement RESTful backend APIs for our webapp. Best practices say that response payload should contain links to the returned resource objects. It can be in the form of _link or href. I don't see a way to include…

donnie
- 2,981
- 2
- 16
- 24