Update av_api.md

add some code blocks in the markup