Skip to content

What is the best way to create URLs for hosted things #1376

@danielpeintner

Description

@danielpeintner

Based on #1351 and the proposed PRs (#1352 & #1375) to fix name clashes a more general question arose.

What is the best way to generate URLs for hosted things?

At the moment, we use slugify to create human-readable URLs based on the given name of a thing.
In the case of name clashes, we add a suffix like _2 to differentiate them.

In the case of many sensors with the same name, these artifacts might happen very often...

In a discussion with @relu91 we also talked about using the given id or create UUIDs if the id is not given. Unfortunately this make it hard to predict URLs like we do in some examples (causes problems for humans)

Image

Having said that, I think we need a more general discussion how URLs should look like and whether they might differ depending on the protocol.

Feel free to comment and share you view!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions