Adding the routes; check by 'app/console route:debug | grep api'