telefonicaid / telefonicaid/iotagent-node-lib
Not possible to extend northbound API
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 62
- Forks
- 90
- Avg merge
- 2h 35m
- Merged PRs (30d)
- 1
Description
I use version 2.16 of the iotagent-node-lib libary.
I want to extend the norhtbound API with for instance a method POST /iot/links.
It would come handy to have a handler call back allowing us to add custom http methods to northboundServer.router.
The callback would be called somewhere in function NorthboundServer.start().
An alternative would be to use the methods POST or PUT with the property internal_attributes, but this is not possible because of issue #1083
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading NorthboundServer.start() and the use of northboundServer.router to understand where custom HTTP methods could be registered. Review issue #1083 for the related alternative, then define the callback behavior and verify that an external method such as POST /iot/links can be added without breaking existing routes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100