API endpoint semantics

Whether the API endpoint is a β€œmethod”, for example https://api.foursquare.com/v2/venues/ , or the full URL, including parameters without a request, such as https://api.foursquare.com/v2/ venues / 5104

In other words, are these two separate endpoints or are considered the same endpoint? http://myapi.com/somemodel/1
http://myapi.com/somemodel/2

+54
api-design
Feb 17 '11 at 20:43
source share
1 answer

According to this Wikipedia article , an endpoint is a web service defined by a WSDL file, and

no more than determines the address or point of connection to the network the provision of services. It is usually represented using a simple HTTP URL string.

Microsoft uses the term endpoint in different contexts , but they are all the same thing: the endpoint is the entire interface, not one specific method.

In the context of a REST endpoint, the endpoint will contain the necessary GET, PUT, POST, and DELETE methods (if applicable).

+56
Feb 17 2018-11-17T00:
source share



All Articles