Git Product home page Git Product logo

Comments (4)

ramukima avatar ramukima commented on July 21, 2024

The existing delete operation hangs as the response from server does not end. Missing "res.status(204).end()" probably.

On a POST, I always hit this line 'console.warn "[yangapi] cannot POST on #{req.path} (link exists)"' after a DELETE operation. You probably intended "DELETE" operation to be a disable feature. Somewhere the req.app.settings is not cleared after DELETE operation.

from yang-express.

sekur avatar sekur commented on July 21, 2024

I'd call it an undocumented feature :-)

I've pushed it in there "untested" (gasp) thinking nobody will actually try this yet... but I should've known better, haha.

Yep, there's much more work needed on the "yangapi" remote hotplug deployment/management feature module. I'm confident that the underlying design/framework will support this construct effectively - since it was a foundational objective behind yang-js and yang-express (even yang-forge) from day one but still a number of key open considerations that need to get worked out.

from yang-express.

sekur avatar sekur commented on July 21, 2024

On the yangapi endpoint, I'm thinking I'll mount it on a new /yangapi endpoint instead of serving at the top-level /.

This way I can support bulk-POST directly into /yangapi and also allow for list discovery of already loaded YANG schema collections (kind of like what ietf-yang-library tries to do). I will still preserve the /yangapi/some-module.yang routes for more granular control on a per-model basis.

I'm thinking the top-level / route should be reserved for some future default feature plugin (just not sure what yet).

from yang-express.

ramukima avatar ramukima commented on July 21, 2024

You spoke my mind. Yes, that would be more desired. In fact, not just yangapi, but all other e.g. restconf etc could have a dedicated endpoint and models hang off of the relevant endpoint.

Not sure if you targeted true RESTCONF specification to be implemented in future. If not, its good to change the endpoint name to something else to avoid confusion.

from yang-express.

Related Issues (8)

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.