Coder Social home page Coder Social logo

Comments (5)

bjyoungblood avatar bjyoungblood commented on August 17, 2024

https://github.com/blongden/hal

from synapse-base.

paulstatezny avatar paulstatezny commented on August 17, 2024

⏬ ☀️ 3️⃣

from synapse-base.

zpchavez avatar zpchavez commented on August 17, 2024

🍍 5️⃣ ⭕

from synapse-base.

baohx2000 avatar baohx2000 commented on August 17, 2024

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.

baohx2000 avatar baohx2000 commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.