added json headers for fetching resource listing, api declaration