What is it?
GET is an HTTP method commonly used to request existing data.
It asks the server to return information.
Simple Definition: GET asks the system to give you data.
Software Knowledge → 03 · HTTP & APIs → GET
An HTTP method commonly used to retrieve data.
GET is an HTTP method commonly used to request existing data.
It asks the server to return information.
Simple Definition: GET asks the system to give you data.
Think of GET as asking:
“Show me the information.”
GET is commonly used to:
GET requests are commonly used in:
Retrieve a list of orders.
Retrieve order 1001.
Retrieve orders filtered by status.
GET requests usually read existing data and return it to the client.
Usually retrieves existing data.
Usually creates or submits data.
| English Term | 中文 | Simple English | 中文小白理解 |
|---|---|---|---|
| GET | 获取 | An HTTP method commonly used to retrieve data. | 通常用于获取已有数据的 HTTP 方法。 |
| Read | 读取 | Getting existing information without creating new data. | 获取系统中已经存在的数据。 |
| Endpoint | 接口地址 | The API address a GET request is sent to. | GET 请求发送到的具体 API 地址。 |
| Resource | 资源 | The data being requested. | GET 请求想获取的数据或业务对象。 |
| Query Parameter | 查询参数 | A value added to a URL to filter or control a request. | 加在 URL 中用来筛选或控制请求的参数。 |
| Path Parameter | 路径参数 | A value placed inside the URL path. | 放在 URL 路径中用来标识具体资源的参数。 |
| Response | 响应 | Data returned after the GET request is processed. | GET 请求处理后返回的数据。 |
| Status Code | 状态码 | A number showing the result of the request. | 表示 GET 请求处理结果的数字。 |
| Client | 客户端 | The side that sends the GET request. | 发起 GET 请求的一端。 |
| Server | 服务器 | The side that receives the request and returns data. | 接收 GET 请求并返回数据的一端。 |
GET is commonly used to retrieve data.
GET usually reads existing resources.
A GET request returns data in the response.