Add last deployment api endpoint to get the last deployment