问题描述
是一个API端点"方法",如 https://api.foursquare.com/v2/场地/或完整的URL包括非查询字符串参数,如 https://api.foursquare.com/v2/venues/5104
换句话说,这两个独立的端点或考虑了相同的端点吗? http://myapi.com/somemodel/1http://myapi.com/somemodel/2
推荐答案
根据这个wikipedia文章,the端点是由WSDL文件定义的Web服务,以及
不仅仅是定义 地址或连接到网络 服务.它通常代表 通过一个简单的HTTP URL字符串.
microsoft 使用术语endpoint上下文,但它们都有相同的东西:端点是整个接口,不是一个特定的方法.
在a str 端点,端点将包含必需品,放置,发布和删除方法(适用).
问题描述
Is an API endpoint the 'method', like https://api.foursquare.com/v2/venues/ or the full URL including non-query-string parameters like https://api.foursquare.com/v2/venues/5104
In other words, are these two separate endpoints or considered the same endpoint?
http://myapi.com/somemodel/1
http://myapi.com/somemodel/2
推荐答案
According to this Wikipedia article, the endpoint is a web service, defined by a WSDL file, and
does nothing more than define the address or connection point to a web service. It is typically represented by a simple HTTP URL string.
Microsoft uses the term endpoint in various contexts, but they all amount to the same thing: the endpoint is the entire interface, not one particular method.
In the context of a REST endpoint, the endpoint would contain the requisite GET, PUT, POST and DELETE methods (as applicable).