unioslo / mreg

GNU General Public License v3.0
7 stars 13 forks source link

The use of mutable lookup values for endpoints makes consistency... difficult. #529

Open terjekv opened 3 months ago

terjekv commented 3 months ago

So, we have names as endpoint lookup values multiple places, like for hosts. Ie, we api/v1/hosts/foo.bar.com. The thing is, hostnames are mutable. However, we can't look up hosts via the ID without doing a query (api/v1/hosts/?id=42). This means that after we have changed the name of foo.bar.com the resource has moved to a different URL.

This problem also applies to at the very least:

This is... not great.