Thoughtworks interview question

Design API endpoint based on project tasks