implementing restaurant api