API Notation

API Notation is a language-agnostic notation to share the public API of components in code. It was created to standardize software specification documents in teams that need to review code across several languages.

Reference

The notation allows describing objects or modules, with properties, events and methods along with their types.

Example

With this artificial example, you can see how to use it for more complex cases: