API的含义
谁能告诉我下面一段中API的含义,它实际上是关于传输对象的:
如果可能是商业服务 可能会被要求发送或接收所有 或者它的大部分数据在一个大的、 粗粒度消息,很常见 为该服务提供该 其 API 中的功能。
提前致谢。
Could anyone please tell me the meaning of API in following paragraph, that's actually about Transfer Object:
If it's likely that a business service
might be asked to send or receive all
or most of its data in a big,
coarse-grained message, it's common
for that service to provide that
feature in its API.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
“应用程序编程接口”——程序员用来与软件或服务进行通信的一组函数。
"Application Programming Interface" - a set of functions that a programmer uses to communicate with a piece of software or a service.
API = 应用程序编程接口。 它是您向其他组件提供的编程接口的正式声明。 如果您是一家认真的服务提供商,那么您会特别注意 API 的设计。 使用 DTO 通常非常适合提供良好的接口。
维基百科链接
API = Application Programming Interface. It is your formal statement of the programming interafce you offer to other components. If you are a serious service provider then you pay careful attention to the design of your API. The use of DTOs is often very appropriate in the provisision of a good interface.
Wikipedia Link
请参见此处:
有关 API 的维基百科文章
see here:
Wikipedia article on API
它只是意味着该对象公开方法。 人们在表示对象的方法时使用 API 一词并不罕见。
编辑:顺便说一句,API 意味着应用程序可编程接口
It just means that that the object exposes methods. It's not uncommon for people to use the term API when they means methods of an object.
Edit: By the way, API means Application Programmable Interface
添加到前面的答案,假设对于美味网站 API,在您当前的程序中,您可以询问用户添加书签的最后一个网站的信息,以将其放入您的网站。 为了做到这一点,delicious 在他们的 API 中提供了一个 url,您可以将其与某些参数一起使用,它会返回一个 html 代码...
基本上任何提供 API 的网站/程序,基本上都可以让开发人员使用其数据库(由他们指定),他们基本上在 API 部分向开发人员提供方法
to add to the previous answers, let's say for the delicious websites API, in your current program, you can ask for it info on the last site that was bookmarked by a user to put it onto your website. In order to do that, delicious provides a url in their API, and you can use that with certain parameters and it will return you a html code...
Basically any sites/program that provides an API, basically enables the developers to use its database (dictated by them) and they basically provide methods to the developers in their API section
当您谈论任何对象的“API”时,您谈论的是可以发送到该对象的函数(也称为“命令”)。
When you talk about any object's "API", you're talking about the functions (aka 'commands') you can send to that object.
API = 应用程序编程接口
比较正式 API 的最佳方法是代码某些部分之间的契约。
如果你以这种特定的方式呼唤我,我总是会以特定的方式回应。
API = application programming interface
The best way to compare a formal API is an contract between certain parts of your code.
If you call me in this certain way, I will always respond in that certain way.