Comments (4)
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.
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.
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.
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)
- Any documentation on how to use its capabilities/features ? HOT 5
- Facing errors while trying to run yang-express
- TypeError: discover is not a function
- Explore openapi definitions tree to handle nested definitions
- Strange POST behavior on nested lists HOT 15
- openapi: Cannot read property 'nodes' of undefined HOT 2
- yangapi: GET broken 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 yang-express.