Interview practice question
Which tests for a create-user endpoint?
Backend Engineering · Testing · Beginner
You built a POST /users endpoint. Which tests would you write for it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Success: 201, body, stored in DB.
- Validation errors: 400 with details.
- Duplicate email: 409.
- Auth/permissions: 401/403.
- Side effects: event or email triggered.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.