Update api.md
Merge pull request #3 from thibault-faure/patch-4

Update api.md