Exploring REST API Security: Best Practices and Practical Examples