Optimaliseer een REST API-endpoint