Skip to content
InterviewEra
What is InterviewEraThe platform, founder, and missionHow It WorksAdaptive interview, live captions, scoringResume-aware ScoringCV-native questions + 5-dimension feedback
Campus Placements OverviewStructured mock interviews and cohort analytics for T&P teamsSet up Campus WorkspaceCreate your campus dashboard and invite your batchT&P Product & PricingPilot pricing, bulk onboarding, and placement trackingStudent Invitation HelpHow to accept a campus invite and start practising
Software EngineerDSA, system design, OOP roundsFrontend DeveloperReact, HTML/CSS, JavaScript interviewsTCS Interview QuestionsNQT + technical + HR roundsWipro Careers HubNLTH, WILP, Turbo hiring tracksSolera Careers HubCognitive assessment + Java/SQL roundsReact Interview QuestionsHooks, state, performance topics
Interview Question GeneratorRole-specific questions in secondsATS Resume CheckerScore your resume against job rolesSTAR Answer BuilderStructure behavioral answers clearly
All ResourcesCentral guide and hub directoryBlogInterview prep articles and guidesAgentic AI Interview GuideAI-assisted coding interviews, rubrics, and prepPlacement GuideStep-by-step campus prep playbookSTAR Method GuideMaster behavioral answers
Help CenterGuides, FAQs, and supportDSA Topic MapPatterns, roadmap, and top 50 problemsSoftware Engineer GuideSWE questions and prep hubAndroid GuideKotlin, Compose, MVVM prep hubFrontend GuideReact and JavaScript interviews
PricingFor Teams
Sign inSign up
InterviewEra

InterviewEra is an AI-powered mock interview platform with adaptive follow-ups, resume-aware scoring, and structured interview preparation for campus placements and early-career hiring.

Start Mock Interview

Mock Interview

  • How It Works
  • For Teams
  • Start Mock Interview
  • Campus Placements
  • Campus Workspace
  • Help Center

Free Tools

  • Interview Question Generator
  • ATS Resume Checker
  • STAR Answer Builder

Interview Questions

  • Wipro Careers Hub
  • Solera Careers Hub
  • Amazon SDE Questions
  • Microsoft SDE Questions
  • Infosys SWE Questions
  • Infosys Java Questions
  • Freshworks Frontend Questions
  • Android Developer Questions
  • Frontend Developer Questions
  • Java Developer Questions

Resources

  • Community Hub
  • All Resources
  • Blog
  • Agentic AI Interview Guide
  • What Is Agentic AI
  • Agentic Coding Round
  • AI Prompt Engineering
  • Cursor AI Interview Guide
  • DSA Topic Map
  • Placement Guide
  • STAR Guide
  • HR Guide
  • Interview Tips

Company

  • What is InterviewEra
  • About Us
  • Pricing
  • Contact

© 2026 InterviewEra. All rights reserved.

Privacy PolicyTermsRefundRanchi, Jharkhand, India
Interview Questions›Topics›REST APIs

Backend · Fresher-relevant

REST APIs Interview Questions 2026

REST API interview questions on HTTP methods, status codes, statelessness, authentication (JWT/OAuth), and API design best practices.

BackendFresher-relevant

REST APIs Interview Questions

Placement-oriented · Updated 2026
  1. 01

    What makes an API RESTful? Explain the core constraints.

    TechnicalMedium

    Tip: REST is stateless (each request is self-contained), uses a uniform interface around resources and HTTP verbs, is cacheable, layered, and client-server separated. Resources are nouns (/orders/42), not verbs. Richardson Maturity Level 3 adds HATEOAS (hypermedia links).

  2. 02

    When do you use PUT vs PATCH vs POST?

    TechnicalEasy

    Tip: POST creates a resource (not idempotent). PUT fully replaces a resource at a known URI and is idempotent. PATCH applies a partial update. Idempotency matters for safe retries — repeating a PUT yields the same state, repeating a POST may create duplicates.

  3. 03

    What do the main HTTP status code ranges mean? Give common examples.

    TechnicalEasy

    Tip: 2xx success (200 OK, 201 Created, 204 No Content), 3xx redirection (301 permanent, 304 Not Modified), 4xx client error (400 bad request, 401 unauthenticated, 403 forbidden, 404 not found, 429 rate limited), 5xx server error (500, 503). Return 401 vs 403 correctly — they differ in auth vs permission.

  4. 04

    How do you handle authentication and authorization in a REST API?

    TechnicalMedium

    Tip: Authentication proves identity (who); authorization grants access (what). Common: stateless JWT or OAuth2 bearer tokens in the Authorization header, short-lived access tokens + refresh tokens, scopes/roles for authorization. Always over HTTPS; never put tokens in URLs.

  5. 05

    How do you version a REST API and why?

    TechnicalMedium

    Tip: Versioning prevents breaking existing clients on changes. Options: URI versioning (/v1/users — most explicit and cache-friendly), header/media-type versioning (Accept: application/vnd.api.v2+json), or query param. Add fields backward-compatibly and reserve a version bump for breaking changes.

  6. 06

    How do you design pagination, filtering, and sorting for a list endpoint?

    TechnicalMedium

    Tip: Offset pagination (?page=&size=) is simple but slow and inconsistent on large/changing datasets; cursor (keyset) pagination (?after=<id>) scales and is stable. Expose filtering and sorting via query params (?status=open&sort=-createdAt) and return total/next-cursor metadata.

  7. 07

    What is idempotency and how do you make a payment/create endpoint safe to retry?

    TechnicalHard

    Tip: An idempotent operation produces the same result no matter how many times it runs. For non-idempotent POSTs (payments), accept a client-supplied Idempotency-Key header, store the first result keyed by it, and return that cached result on retries instead of re-executing.

  8. 08

    How do REST and GraphQL differ, and when would you pick each?

    TechnicalMedium

    Tip: REST exposes fixed resource endpoints and can over- or under-fetch; it has simple HTTP caching. GraphQL exposes one endpoint where clients request exactly the fields they need, reducing round-trips but complicating caching and adding query-cost concerns. Pick GraphQL for varied client data needs, REST for simple, cacheable, public APIs.

Practice REST questions with your own resume

InterviewEra generates role-specific questions using your actual projects and skills. Get scored feedback on technical depth, clarity, and structure — free to start.

Start free mock interviewFree question generator

Roles that need REST

  • Software Engineer questions
  • Python Developer questions
  • Frontend Developer questions
  • Backend Developer questions
  • Full Stack Developer questions

Related backend topics

  • Java questions
  • Python questions
  • Node.js questions
  • Spring Boot questions
  • Django questions

Practice tools

  • Interview question generator
  • ATS resume checker
  • STAR answer builder

Guides and resources

  • All interview questions
  • HR interview answer tips
  • STAR method with examples