Update api.html

Fixes typo (from <-> form) in the API page of the documentation