Liebherr Group interview question

How does API works and types?