简体   繁体   English

是否可以在没有端点的情况下使用API​​?

[英]Is it possible to do an API without Endpoint?

我有一个问题是由于工作中的讨论,一个人说是,另一个人说不,正确的答案是什么?

Lets take REST API's for instance as the example here. 让我们以REST API为例。

An Endpoint is an address that you call in order to GET / DELETE / PUT or POST data TO or FROM the service that is providing the API. Endpoint是您为了向提供API的服务获取/删除/放入或发布数据而调用的地址。

Imagine an Endpoint to be like a phone-number. 想象一个端点就像一个电话号码。

If you call 911 someone will likely answer with "Hey, whats your emergency?" 如果您拨打911有人可能会回答“嘿,您的紧急情况是什么?”

But if you call 000091100000 the likelihood of someone answering with "Hey, whats your emergency?" 但是,如果您拨打000091100000 ,则有人回答“嘿,您的紧急情况是什么?”的可能性000091100000 would probably decrease. 可能会减少。

So, an endpoint is usually what you would refer to as the "address" to an API-function. 因此,端点通常就是您所称的API函数的“地址”。

Eg. 例如。 https://api.yourDomain.com/users/get/details/query?age=25 https://api.yourDomain.com/users/get/details/query?age=25

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法访问 API 端点? - Accessing API-endpoint is not possible? 是否可以在WooCommerce API订单端点中选择多个状态? - Is it possible to select more than one status in the WooCommerce API orders endpoint? 在REST API中创建PUT和POST端点,而不创建GET端点? - Create PUT and POST endpoints in a REST API, without creating a GET endpoint? 可以对API内容进行SEO吗? - is possible to do SEO for API Content? 轮询API端点-当没有返回JSON时如何重试? - Polling an API endpoint - how do I retry when no JSON is returned? 如何登录给定的API端点并获取令牌? - How do I login given an API endpoint and get token? 如何将数据发布到我的 nextjs api 端点 - how do I post data to my nextjs api endpoint 是否可以在没有身份验证令牌的情况下使用 AWS API - Is it possible to use AWS API without Authentication Token 是否可以使用不带RefreshToken的Google Adwords Api? - Is it possible to use Google Adwords Api without RefreshToken? 弃用Google+ People API列表端点之后。 是否可以在圈子中显示可见的好友列表? - After Google+ People API list endpoint is deprecated. It is possible to get the visible friends list in circle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM