Skip to content

API Testing

Master API Testing with 40 free flashcards. Study using spaced repetition and focus mode for effective learning in Programming.

🎓 40 cards ⏱️ ~20 min Intermediate
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What is API testing?

Show ▼

API testing verifies that an application's interfaces behave correctly in terms of functionality, contracts, performance, security, and error handling.

Why is API testing valuable?

Show ▼

It catches issues below the UI layer, runs faster than end-to-end tests, and provides direct confidence in service behavior.

What is the difference between unit, integration, and API tests?

Show ▼

Unit tests isolate small pieces of logic, integration tests verify components working together, and API tests validate behavior at the service boundary.

What is a contract in API testing?

Show ▼

A contract describes the expected structure and behavior of requests and responses, including fields, types, and status codes.

Why should you test status codes explicitly?

Show ▼

Status codes communicate success, failure, and semantics to clients, so incorrect codes can break integrations even when payloads look reasonable.

What is a happy-path API test?

Show ▼

A happy-path test verifies the expected success scenario when valid input is provided under normal conditions.

What is a negative API test?

Show ▼

A negative test verifies the API fails correctly when input is invalid, unauthorized, malformed, or otherwise outside the supported path.

Why should API tests validate response shape?

Show ▼

A response can return the right status code but still break clients if required fields are missing or typed incorrectly.

What is idempotency?

Show ▼

An operation is idempotent if repeating the same request produces the same effect as sending it once.

Why is idempotency important for APIs?

Show ▼

Retries happen in real systems, so idempotent endpoints reduce duplicate side effects when clients or networks fail.

What is authentication testing?

Show ▼

Authentication testing checks whether the API properly identifies the caller using credentials like tokens, sessions, or API keys.

What is authorization testing?

Show ▼

Authorization testing checks whether an authenticated caller is allowed to access a resource or perform an action.

🎓 Start studying API Testing

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Programming

📖 Learning Resources