The menu in the example is the API documentation.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Paul Clapham wrote:The example says
The menu in the example is the API documentation.
But your idea is that the API is the menu, which yes, is in conflict with the example.
I think most people would describe an API as a piece of software which acts as a standardized interface between two pieces of software.
Tim Holloway wrote: API is not code at all
Wikipedia wrote:An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software.[1] A document or standard that describes how to build such a connection or interface is called an API specification. A computer system that meets this standard is said to implement or expose an API. The term API may refer either to the specification or to the implementation.
Wikipedia, later, wrote:The term API is often used to refer to web APIs,[2] which allow communication between computers that are joined by the internet. There are also APIs for programming languages, software libraries, computer operating systems, and computer hardware. APIs originated in the 1940s, though the term did not emerge until the 1960s and 70s.
Paul Clapham wrote:... it has evolved over time to mean different things.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:
Paul Clapham wrote:... it has evolved over time to mean different things.
Which is also true of a lot of other computer terms.
Paul Clapham wrote:
Tim Holloway wrote:
Paul Clapham wrote:... it has evolved over time to mean different things.
Which is also true of a lot of other computer terms.
It's true of many words in the English language.
Anil Philip wrote:But we are not looking at historical definitions in the case of "what is an API?".
What exactly is an API in the systems and languages we work with.
How will you draw the boundary between the API and the implementation?
Are Springboot implementation methods the API?
Ron McLeod wrote:Your original post was on the right path.
I think of APIs and boundaries like this ...
An API is a contract describing how one software unit talks to another; with one side being the contract owner and the other being the consumer. The API does not give any hint of the implementation of either side. An API is not a document, although it can be represented with a document such as an OpenAPI document.
A boundary is separation of responsibility or ownership.
The API is the crossing point where data moves across that boundary.
Anil Philip wrote:
When people say, "write an API", It should mean, 'design the interface'. Writing the implementation should be a separate activity.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Ron McLeod wrote:The first 10 minutes of this Devoxx talk by Mario Fusco
