Ensuring routes are unique


In the previous model to make sure API are the same.
I was concatenating path and methods and use the resulting string as the name of the API.
Using this I ensured that API is always unique.

I can’t do the same with the new model routes.
I would suggest we return the name field or make path to be unique.


I see, this looks to be related:

naming routes is a bit weird, but if we implement:

PUT /routes/{uuid}

You could specify {uuid}, providing it is actually UUID. But having user provided UUIDs may have consequences as well (e.g. could accidentally override existing). Composite unique indexes work with PosgreSQL, but Cassandra doesn’t have that, AFAIK.