Barclays interview question

Explain REST APIs and difference between PUT and POST