[DOC release] Cleanup application API code examples

Quotes, vars, spaces
Merge pull request #9513 from knownasilya/patch-2

[DOC release] Cleanup application api code examples