开发者

API Endpoint Semantics

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开发者_JS百科

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜