eclipse-thingweb / eclipse-thingweb/node-wot

Possibility to add a base URL path to a Thing Model / Exposed Thing

Open
#632 2 comments 1 reaction 0 assignees View on GitHub
binding-http enhancement good first issue
Dominant language
TypeScript
Stars
192
Forks
100
Avg merge
3d 2h
Merged PRs (30d)
6

Description

Hello,

I wonder if there is a feature to define a base URL path for a Thing before exposing it, so far I couldn't find this

As an example, in my application a have multiple Things running on the same servient, many of them are produced using the same Thing Models and they might even have the same names. Thing models themselves do not include any forms and node-wot is the one to assign them. However, it is needed to assign different base URLs for all these Things. It can be seen on the following example:

There are two rooms, each has 1 heater in it. I treat both rooms with the same application/servient. Instead of addressing things like
`localhost:8080/heater`, `localhost:8080/heater_2`
I want to set a base URL in my application:
`localhost:8080/room1/heater`, `localhost:8080/room2/heater`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.