Add examples on API routes, complete test