API test kontrol listesi
Status code beklentiyle uyumlu mu? Response şeması ve alanlar doğru mu? Yetkisiz istekte doğru davranış var mı? 200 yanıtı tek başına iş kuralının doğru olduğunu kanıtlamaz.
API testlerinde status code ile birlikte response body, şema ve iş kurallarını da kontrol et.
| 200 | OK | Success |
| 201 | Created | Success |
| 204 | No Content | Success |
| 301 | Moved Permanently | Redirect |
| 400 | Bad Request | Client error |
| 401 | Unauthorized | Client error |
| 403 | Forbidden | Client error |
| 404 | Not Found | Client error |
| 409 | Conflict | Client error |
| 429 | Too Many Requests | Client error |
| 500 | Internal Server Error | Server error |
| 503 | Service Unavailable | Server error |
Status code beklentiyle uyumlu mu? Response şeması ve alanlar doğru mu? Yetkisiz istekte doğru davranış var mı? 200 yanıtı tek başına iş kuralının doğru olduğunu kanıtlamaz.