Your question is Create a New API Endpoint. 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).
How would you write an entirely new endpoint for the provided project?
Asked in the Live coding stage. Asked alongside the refactor and unit-test tasks.
Treat this as a hands-on implementation task. Explain how you would inspect the existing project, identify the correct module and conventions, define the endpoint contract, implement the request path, and validate it with tests. Discuss how you would handle validation, errors, authorization if applicable, persistence or downstream calls, backward compatibility, and observability. Do not assume a specific framework or invent missing project requirements. State what you would clarify from the repository before coding.