Pergunta de entrevista da empresa PureCode Software

What are common security threats to APIs, and how do you mitigate them? Explain the use of OAuth in API security. How do you ensure data encryption in transit and at rest for API communications?