Eleks Software Interview Question

How would you secure REST API endpoint?