3 ms·
If you save the relative URL in your database and then the API changes its URL schema, you will need to migrate everything you stored to the new schema. If all
by twblalock 8y ago
If you save the relative URL in your database and then the API changes its URL schema, you will need to migrate everything you stored to the new schema.
If all you stored was the ID, all you would need to change is the logic in your API client which accepts the ID and constructs the URL for it.
- chii 8y agoa change that necessitate a URL schema change would be just as far reaching had the system been designed with using IDs. For example, if the entity ID changes from being an integer, to being a GUID, you'd still have to write code to update your schema (presumably, from an int column to a GUID/string column).