REST Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

17 REST interview questions from Wipro, TCS, Capgemini, Razorpay. All difficulty levels, all roles. Upvoted by engineers who were asked them.

17 questions
Companies: Wipro, TCS, Capgemini, Razorpay
826 upvotes

REST Questions by Company

Wipro (5)

Wipro Hard Technical round PostmanREST

Explain common HTTP status codes returned by APIs (2xx, 3xx, 4xx, 5xx). Differentiate between 401 vs 403, 404 vs 400, and 502 vs 503. How do you validate these in automated API tests?

↑ 58 upvotes · 21 engineers asked this · Tester
Wipro Hard Technical round PostmanRESTJava

Describe JSON Schema Validation and its importance in API testing. What is a JSON schema? How do you validate that an API response conforms to the expected schema using Rest Assured or Postman? Give an example schema for a user object with required fields and type constraints.

↑ 61 upvotes · 22 engineers asked this · Tester
Wipro Hard Technical round PostmanREST

Differentiate between Path Parameters and Query Parameters in REST APIs. Give examples: /users/{id} vs /users?role=admin. When should each be used? How do you pass and validate them in automated API tests using Rest Assured or Postman?

↑ 57 upvotes · 21 engineers asked this · Tester
Wipro Hard Technical round JavaRESTPostman

How can nested JSON responses be handled in API testing? Show how to extract a deeply nested value (e.g., response.data.user.address.city) using Rest Assured's JsonPath, and how to validate arrays of objects within the response.

↑ 44 upvotes · 16 engineers asked this · Tester
Wipro Medium Technical round 1-4 yearsREST

What's the difference between testing a REST API's status code and testing its response schema? Why do you need both?

↑ 16 upvotes · 9 engineers asked this · QA Engineer

TCS (1)

TCS Medium System Design round JavaSpring BootREST

Design a REST API for an e-commerce cart system. Define the endpoints (add item, remove item, get cart, checkout), explain authentication with JWT, handle race conditions on inventory, and discuss idempotency for the checkout endpoint.

↑ 46 upvotes · 47 engineers asked this · SDE2

Capgemini (2)

Capgemini Medium Technical round PlaywrightRESTTypeScript

Explain the difference between PUT and PATCH in REST APIs. When is each appropriate? Show how you would test both verbs using Playwright's APIRequestContext, and explain how to validate partial vs full resource updates.

↑ 59 upvotes · 22 engineers asked this · Tester
Capgemini Medium Technical round PlaywrightPostmanREST

How do you test a REST API that requires OAuth 2.0 authentication? Walk through obtaining a token (client credentials flow), storing it, using it in subsequent requests, and handling token expiry in your automation framework.

↑ 50 upvotes · 31 engineers asked this · Tester

Razorpay (2)

Razorpay Medium Technical round RESTDistributed Systems

Explain the difference between a payment gateway, payment processor, and acquiring bank. How does money actually move when a customer pays with a credit card on a Razorpay-powered checkout? Walk through each hop end to end.

↑ 39 upvotes · 38 engineers asked this · SDE2
Razorpay Medium Technical round RESTJava

Explain the UPI payment flow end-to-end: from user entering a VPA to money credited. What is NPCI's role? What happens when the beneficiary bank is down? How does Razorpay handle UPI collect vs UPI intent flows?

↑ 51 upvotes · 32 engineers asked this · SDE1

Stripe (3)

Stripe Hard Technical round PostgreSQLRESTDistributed Systems

Explain how Stripe handles exactly-once payment processing. A customer clicks "Pay" twice in quick succession. How does Stripe prevent double-charging? Walk through idempotency keys in the API, database-level constraints, and how the client should handle the case where the first request times out.

↑ 67 upvotes · 65 engineers asked this · SDE2
Stripe Hard Technical round RESTDistributed Systems

Explain PCI-DSS compliance requirements for handling card data. What is tokenisation? How does Stripe use it to ensure raw card numbers never touch customer servers? What are the implications for your API design?

↑ 52 upvotes · 32 engineers asked this · SDE2
Stripe Medium Technical round RESTPostgreSQLJava

Explain the difference between synchronous and asynchronous API design using Stripe as an example. When does a charge complete immediately vs require a webhook? How do you handle the intermediate "pending" state in your database?

↑ 57 upvotes · 36 engineers asked this · SDE1

Paytm (2)

Paytm Medium Technical round JavaREST

How does Paytm's QR code payment work technically? Explain the difference between static QR (merchant VPA encoded) and dynamic QR (amount pre-filled). What are the security implications of each?

↑ 44 upvotes · 27 engineers asked this · SDE1
Paytm Hard Technical round JavaScriptReactREST

Explain Paytm's mini-app platform architecture. Third-party developers build apps that run inside the Paytm super-app. How do you sandbox them (security), manage their lifecycle, share user identity safely (OAuth), and handle payments on their behalf?

↑ 45 upvotes · 28 engineers asked this · SDE2

Infosys (1)

Infosys Medium Technical round JavaSpring BootREST

Explain REST API best practices. What makes an API RESTful? Cover: proper use of HTTP verbs, status codes, versioning strategies (/v1/users vs Accept header), pagination (cursor vs offset), and HATEOAS.

↑ 60 upvotes · 38 engineers asked this · SDE2

Accenture (1)

Accenture Medium Technical round 2-4 yearsSpring BootJavaREST

Design a REST controller in Spring Boot for a "create order" endpoint. What annotations and validation would you use to ensure a malformed request returns 400 instead of crashing?

↑ 20 upvotes · 12 engineers asked this · Developer

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

REST questions at each company

Wipro REST

Frequently asked questions

Explain common HTTP status codes returned by APIs (2xx, 3xx, 4xx, 5xx). Differentiate between 401 vs 403, 404 vs 400, and 502 vs 503. How do you validate these in automated API tests?
Explain common HTTP status codes returned by APIs (2xx, 3xx, 4xx, 5xx). Differentiate between 401 vs 403, 404 vs 400, and 502 vs 503. How do you validate these in automated API tests?
Describe JSON Schema Validation and its importance in API testing.
Describe JSON Schema Validation and its importance in API testing. What is a JSON schema? How do you validate that an API response conforms to the expected schema using Rest Assured or Postman? Give an example schema for a user object with required fields and type constraints.
Differentiate between Path Parameters and Query Parameters in REST APIs.
Differentiate between Path Parameters and Query Parameters in REST APIs. Give examples: /users/{id} vs /users?role=admin. When should each be used? How do you pass and validate them in automated API tests using Rest Assured or Postman?
How can nested JSON responses be handled in API testing?
How can nested JSON responses be handled in API testing? Show how to extract a deeply nested value (e.g., response.data.user.address.city) using Rest Assured's JsonPath, and how to validate arrays of objects within the response.
Design a REST API for an e-commerce cart system. Define the endpoints (add item, remove item, get cart, checkout), explain authentication with JWT, handle race conditions on inventory, and discuss idempotency for the checkout endpoint.
Design a REST API for an e-commerce cart system. Define the endpoints (add item, remove item, get cart, checkout), explain authentication with JWT, handle race conditions on inventory, and discuss idempotency for the checkout endpoint.