nilportugues / php-hal Goto Github PK
View Code? Open in Web Editor NEWHAL+JSON & HAL+XML API transformer outputting valid (PSR-7) API Responses.
Home Page: http://nilportugues.com
License: MIT License
HAL+JSON & HAL+XML API transformer outputting valid (PSR-7) API Responses.
Home Page: http://nilportugues.com
License: MIT License
It would be nice to have the psr-7 reponses in a separate repo, in case someone want to use them without the rest.
DateTime objects are returned in the api with it internal representation:
{
"date": "2012-12-31 23:00:00.000000",
"timezone_type": 3,
"timezone": "UTC"
}
I would like to output date as a single ISO-8601 value (DateTime::ATOM). How would you recommend doing it using this library?
Instead of setting the link in the collection object as shown in exemples, when providing an array, the link for the next page is being included into each element. It should be only one _links
property in the same level as _embedded
.
Tested with 2.0.3 and master.
Port all possible options. Its just worth it.
Fields is a must; Filter should be ignored; Everything else should be ported
It won't show up even if declared.
Other entries will show.
According with https://tools.ietf.org/html/draft-kelly-json-hal-08#page-6 json has key for field with collection in embedded. Like this:
"_embedded": {
"orders": [ // objects list
How I can set this key with php-hal?
Do you have any solution or interested in pull request for this issue?
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.