Added API route
Minor change, cast Id to int