INITIALIZING SECURE CHANNEL...
CPU MEM NET PING9.2 ms SECSECURED
COFFEE—WEB v4.0 // eu-1
ONLINE 2 847 --:--:--
/english > 07. REST APIs & HTTP Vocabulary
// УРОК 07

REST APIs & HTTP Vocabulary

B1

REST APIs & HTTP Vocabulary

Backend interviews almost always include API design questions. Know how to discuss them in English.

Core HTTP Methods

MethodUsageSentence
GETRetrieve data"We use GET to fetch the user profile."
POSTCreate resource"POST is used to create a new order."
PUT/PATCHUpdate resource"PATCH updates only the changed fields."
DELETERemove resource"DELETE removes the record permanently."

Key REST Concepts

  • endpoint — a specific URL that handles a request
  • payload — the data sent in the request body
  • response — the data returned by the server
  • status code — HTTP code indicating the result (200, 404, 500...)
  • idempotent — same request produces the same result every time

Useful Phrases

  • "The endpoint accepts a JSON payload with..."
  • "We return a 201 status code when a resource is created."
  • "PUT is idempotent, while POST is not."
  • "We version our API to avoid breaking changes."
// TERMINAL CHALLENGE

Проверь себя

Q1. Which HTTP method is used to partially update a resource?
Q2. What is an 'endpoint' in REST API context?
Q3. What does 'idempotent' mean?
Q4. Complete: 'We return a ___ status code when a new resource is successfully created.'
Q5. What is a 'payload'?
╔═ GL1TCH v0.1 ═[ПОДКЛЮЧЕНО]═╗ [×]
СОЕДИНЕНИЕ АКТИВНО
запросов:
// сессия #{} начата
>_
[ РАЗРЫВ СВЯЗИ ]
лимит исчерпан...
иду спать... zzZ
хочешь больше? [зарегистрироваться] // +10 запросов в день