Comments (5)
https://github.com/blongden/hal
from synapse-base.
⏬ ☀️ 3️⃣
from synapse-base.
🍍 5️⃣ ⭕
from synapse-base.
Returning resource links is heavily used in many rest api abstractions like OData http://www.odata.org/documentation/odata-version-4-0/
from synapse-base.
TL;DR - hal is oversimplified IMO
hal seems to contain a lot of redundant or unnecessary data pertaining to related records which it assumes the user wants. Some of this of data should be accessible via an api metadata api call instead. Also, it seems to want you to define any other apis for paging & searching within the result data. This should be part of the api standardization/abstraction, not a one-off for each resource.
A good api standardization/abstraction includes methodologies for object & relation definition (metadata), paging, resource cacheing, filtering, and result data filtering (specifying what will be in the response). Of course, that's just the request side of things. Of course, there should also be standardization for creating/patching/deleting records, and a method for performing batch requests.
from synapse-base.
Related Issues (20)
- Allow creating requests containing file uploads HOT 5
- V2: Remove deprecated features HOT 2
- Update CHANGELOG
- Convert existing int timestamp fields to datetimes
- Better error output for migrations HOT 3
- Extract Mappers and Entities into separate repo HOT 5
- Stop Doing SELECT Queries Twice HOT 4
- Add File-based functionality (service & controllers) HOT 8
- Command to list routes HOT 2
- DataObject:getArrayCopy should be recursive HOT 4
- Convenience Function for Mocking Methods HOT 2
- FinderTrait addWheres() assumes 'IS' and 'IS NOT' operators will be followed by null
- Extend Symfony & existing synapse constraints HOT 6
- Only accept Response return values in AbstractRestController::execute() HOT 1
- Modify CORS to allow single "Methods" header
- Implement \ArrayAccess interface for Entities
- Ensure DB set up correctly to use configured charset (which should be utf8mb4)
- Unverified user's login attempt should return a unique error rather than invalid credentials error
- DataObject should correctly camel case property names containing numerals
- Improvement: Pass optional config variables to oauth server HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synapse-base.