Company: oracle_29oct
Difficulty: medium
REST API: Chocolate Ratings Problem Description Your task is to determine the highest-rated chocolate of a specified type from a chocolate database. Each chocolate is scored based on its attributes, using a system of weight multipliers that define how much each attribute contributes to the overall rating. Use HTTP GET requests to retrieve data from https://jsonmock.hackerrank.com/api/chocolates?type=chocolatetype . To access additional pages, append &page=num to the URL. The API response includes: page : the current page per_page : the maximum results per page total : the total number of records total_pages : the total number of pages for the query data : an array of JSON objects containing chocolate information Each object in the data field includes: type : the type of chocolate productNumber : the product number ingredients : a list of ingredients allergenInformation : a list of allergens flavors : a list of flavors nutritionalInformation : an object containing nutritional detail