Update api.md

Fix links to APIs so they work in generated docs.