0
0
Testing Fundamentalstesting~5 mins

REST API testing basics in Testing Fundamentals - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a REST API?
A REST API is a way for different software systems to talk to each other over the internet using simple rules like GET, POST, PUT, and DELETE.
Click to reveal answer
beginner
Name the four main HTTP methods used in REST API testing.
GET (to read data), POST (to create data), PUT (to update data), DELETE (to remove data).
Click to reveal answer
beginner
Why do we test REST APIs?
We test REST APIs to make sure they work correctly, return the right data, handle errors well, and perform fast enough.
Click to reveal answer
beginner
What is a status code in REST API responses?
A status code is a number that tells if the API request worked or if there was a problem, like 200 means success, 404 means not found.
Click to reveal answer
beginner
What is the difference between GET and POST methods?
GET asks for data without changing anything, while POST sends new data to the server to create something.
Click to reveal answer
Which HTTP method is used to update existing data in REST API?
APUT
BPOST
CGET
DDELETE
What does a 404 status code mean in REST API testing?
ANot Found
BSuccess
CServer Error
DUnauthorized
Which HTTP method should you use to retrieve data without changing it?
APOST
BPUT
CGET
DDELETE
Why is testing REST APIs important?
ATo check if the user interface looks good
BTo ensure the API works correctly and returns expected results
CTo improve server hardware
DTo write documentation
Which HTTP method is used to delete data in REST API?
APUT
BPOST
CGET
DDELETE
Explain the main HTTP methods used in REST API testing and their purposes.
Think about what each method does to the data on the server.
You got /4 concepts.
    Describe why status codes are important in REST API testing and give examples.
    Status codes are like traffic lights for API responses.
    You got /4 concepts.