Skip to content

学习 API 基础和架构 —— 面向初学者的指南 - #658

Merged
miyaliu666 merged 1 commit into
freeCodeCamp:mainfrom
SeekElio:new-625
Sep 2, 2025
Merged

学习 API 基础和架构 —— 面向初学者的指南#658
miyaliu666 merged 1 commit into
freeCodeCamp:mainfrom
SeekElio:new-625

Conversation

@SeekElio

Copy link
Copy Markdown
Contributor

Checklist:

Closes #625



This article is well-suited for beginners in web and mobile development and developers seeking a concise understanding of APIs and how they function.
这篇文章非常适合于网络和移动开发初学者,以及希望简要了解 API 及其如何运作的开发者。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

web development 翻译成 web 开发

想象一下有一家餐馆:顾客(客户端)通过服务员(API)点餐,然后服务员通知厨房(服务器)。厨房备餐后通过服务员传递给顾客。就像服务员一样,API 处理请求和响应,让顾客在无需了解厨房操作细节的情况下享受餐点。

A more practical example is when you buy a subscription online, and your payment information is securely sent to Paystack through its payment API. The API is a middleman that takes your request, verifies and processes your payment details with the bank, and then returns a confirmation to the website without directly exposing sensitive data.
一个更实用的例子是当你在线购买订阅时,你的支付信息通过其支付 API 安全发送至 PaystackAPI 是一个中间商,它获取你的请求,验证并处理你的银行支付信息,然后在不直接暴露敏感数据的情况下返回确认给网站。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

中间商 => 中间人

### 开放 API

Open APIs are APIs made available to the general public. This encourages developers, organisations, and other people to use them to develop applications, integrate them into their services, and improve them. Open APIs provide standardised access to data or services over the Internet.
开放 API 是向公众提供的 API。它鼓励开发者、组织和其他人使用它们来开发应用程序,将其集成到他们的服务中,并加以改进。开放 API 提供了通过互联网访问数据或服务的标准化接口。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

它鼓励开发者 => 这就鼓励开发者

```

- Client receives and uses the data: The frontend or another service consumes the API response and displays or processes it accordingly.
- 客户端接收并使用数据:前端或其他服务消费 API 响应,并相应地显示或处理数据。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

消费 => 使用

- 客户端接收并使用数据:前端或其他服务消费 API 响应,并相应地显示或处理数据。

Teams utilize REST APIs for web services, mobile apps, and cloud integrations. Social media platforms fetch posts, while e-commerce sites retrieve product details. Payment gateways process transactions and weather apps access real-time forecasts. REST’s simplicity and scalability make it the preferred choice for public and internal APIs.
团队利用 REST APIs 用于 Web 服务、移动应用和云集成。社交媒体平台获取帖子,电子商务网站检索产品详情。支付网关处理交易,天气应用程序访问实时预测。REST 的简单性和可扩展性使其成为公共和内部 API 的首选。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

团队将 REST API 用于 Web 服务、移动应用程序和云集成。



Banks, healthcare providers, and government agencies use SOAP for secure, reliable APIs. Financial institutions process transactions with strict authentication, while healthcare systems exchange patient data under compliance regulations. Airlines rely on SOAP for booking and ticketing, ensuring consistent data integrity across systems.
银行、医疗保健提供者和政府机构使用 SOAP 进行安全、可靠的 API。金融机构以严格的身份验证处理交易,而医疗系统在遵从法规下交换患者数据。航空公司依赖 SOAP 进行预订和售票,确保跨系统的一致数据完整性。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 SOAP 提供安全、可靠的 API

@miyaliu666

Copy link
Copy Markdown
Member

非常感谢 @SeekElio 校对这篇译文!文章整体很流畅。我提了几个修改建议,我会在发布时修改它们。

接下来,请把你的邮箱发给我,可以在这里留言或者加小助手微信(账号:freeCodeCampZH),我给你发送邮件邀请,以注册专栏账号。

@miyaliu666
miyaliu666 merged commit 47edffa into freeCodeCamp:main Sep 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[zh](API 基础知识和架构)

2 participants