Your question is OOP, REST, and API Semantics. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Explain how you ensure OOP in your code, what SOLID principles are, and what it means for code to be open for extension and closed for modification; also explain how you can tell if an API is RESTful, what a POST can do beyond adding a record, and the differences between PATCH and PUT.