Sometimes a simple REST API change can significantly simplify the UI
Sometimes a simple REST API change can significantly simplify the UI.
Example: An endpoint returns either an array, or null. This requires the UI to handle the potential null. 👎
Solution: If there are no records, return an empty array instead of null from the REST API.