Pergunta de entrevista da empresa Stuart

How would you protect a REST API against potential SQL Injections?