CS FundamentalsHardProduct-company API design interview
In the Richardson maturity model for REST APIs, which feature marks the top level (Level 3)?
- A. Using HTTP verbs such as GET and POST properly
- B. Exposing separate resource URIs
- C. Hypermedia controls (HATEOAS): responses contain links telling the client what it can do next
- D. Using JSON instead of XML
Correct answer: C. Hypermedia controls (HATEOAS): responses contain links telling the client what it can do next
Level 1 introduces resources, Level 2 uses HTTP verbs and status codes, and Level 3 adds hypermedia so clients discover actions from links. The data format is irrelevant to the levels.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A mobile home screen needs a user's name, the titles of their last 3 orders and their unread-notification count. The REST API needs 3…
- An API accepts a video for transcoding, which takes several minutes. What is the most appropriate immediate response?
- What is the difference between the HTTP headers Cache-Control: no-cache and Cache-Control: no-store?
- A web app at https://app.example.com sends a PUT request with a JSON body to https://api.example.com. Before the PUT, the browser sends…
- An API uses self-contained JWT access tokens that are valid for 24 hours and are verified only by signature. A user's laptop is stolen and…
- A token-bucket rate limiter holds up to 10 tokens and refills 2 tokens per second; it starts full. A client fires requests as fast as…