Question d’entretien chez Atlas Copco Group

How would you approach designing an api for this problem?