Add rake api task
Escape code blocks