Pergunta de entrevista da empresa Eleks Software

How would you secure REST API endpoint?