Review this API endpoint design for best practices — Development Task