Giter VIP home page Giter VIP logo

Comments (3)

rs avatar rs commented on May 14, 2024

Not really. The whole idea is to abstract the rest layer from the storage layer. Thanks to that you can swap the rest layer for the GraphQL layer with no change on your storage layer.

You can write a custom layer to replace rest and reuse the resource package with the same storers if you want.

from rest-layer.

smyrman avatar smyrman commented on May 14, 2024

I think most REST-APIs tend to be CRUD or CRUDL, like rest-layer.

That means that if you want to DELEGATE a proxy/zone, you do so with a -X PATCH where you e.g. change the state and assign something, and/or install an appropriate hook.

I don't know what use case you are considering, but if you want custom methods (that perhaps even take parameters), perhaps you want too look into RPC frameworks, e.g. https://capnproto.org/ or http://www.grpc.io/?

from rest-layer.

omani avatar omani commented on May 14, 2024

yeah I could work with hooks, a custom layer and the like. I just thought it would be far easier to implement new features of my own rest API by defining new http methods and attach the appropriate function to them.

but you both are right, it's not the way rest should be used. in rest terms. that's why your suggestion with grpc makes sense to me.

I can work with queries and/or hooks. thanks guys.

from rest-layer.

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.