earthlinginteractive / laravel-jsonapi Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jpchip/laravel-jsonapi
Make it a breeze to create a jsonapi.org compliant APIs with Laravel 5.
License: MIT License
This project forked from jpchip/laravel-jsonapi
Make it a breeze to create a jsonapi.org compliant APIs with Laravel 5.
License: MIT License
Write tests for all major functionality
Most of the time front ends expect properties to be camel cased, not snake cased. By default laravel's eloquent ORM is all snake cased.
I would like to request in the next major version that all interactions with the api be camel cased. This can be done by overriding getAttribute and setAttribute functions of the model, as described here:
http://stackoverflow.com/questions/25559558/how-can-i-access-attributes-using-camel-case
Update code to produce JSON that matches the current spec of jsonapi.org.
Right now the code loads all exposed relationships, which can be intensive and slow. I would like to refactor so that if a relationship is not specifically asked to be included, it is not lazy loaded.
The one issue to figure out with this is that currently the type
of the relationship is defined by model's table name, which we load the relationship to get. I need to think of some other way to either get the table name of the related resource, or use something else as the type
, like maybe the model name? Maybe I can get the model of the relationship without doing a load, like with this function: http://laravel.com/api/5.0/Illuminate/Database/Eloquent/Relations/Relation.html#method_getRelated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.