Software Engineering Intern Interview Question

What is a REST API, and how have you used one?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

A REST API lets clients work with resources over HTTP, using URLs to identify things, such as a particular user, and HTTP methods to say what to do: GET to read, POST to create, PUT or PATCH to update and DELETE to remove. Responses usually carry JSON and a status code such as 200, 201, 404 or 500. Requests are stateless, so each one includes everything the server needs, including authentication.

Why interviewers ask this

Interns very often build or call APIs in their first weeks, so the interviewer wants a working understanding of resources, HTTP methods, status codes and JSON. More than definitions, they want a real example, either an API you built or one you consumed. Mentioning details such as authentication, sensible status codes, pagination, or handling errors and rate limits shows you have gone beyond a tutorial.

How to structure your answer

  • Define a REST API in plain terms.
  • Explain resources, methods and status codes.
  • Describe an API you built or used.
  • Mention a practical detail such as errors or authentication.

Example answer

Spoken example, first person

A REST API is a way for programs to talk to each other over HTTP, organised around resources. Each resource has a URL, like books slash forty two for one particular book, and the HTTP method says what you want: GET to read it, POST to create one, PUT or PATCH to update it, and DELETE to remove it. The server replies with a status code, such as 200 for success, 201 when something was created, 404 when it does not exist or 500 when the server failed, usually with a JSON body. It is stateless, so every request carries what the server needs, including an authentication token. I have used it from both sides. In my textbook swap project I built the API in Python, with endpoints for listings and messages, and I learned the hard way to return proper status codes, because our frontend originally got a 200 even when something failed, which made bugs confusing. I have also called a public weather API in a personal project, where I handled its rate limits by caching responses for ten minutes instead of calling it on every page load.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • What is the difference between PUT and PATCH?
  • What does it mean for a request to be idempotent?
  • How would you paginate an endpoint that returns thousands of items?

Related software engineering intern questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot