add template for how to fetch json from server api