A generic function for the MNIS API lookup. The function requests data in JSON format, but the type of object, and all URLs, paths and parameters are user-defined. mnis_base
does not include the option to tidy variable names and data types, but the mnis_tidy
function can be called on the data returned from the API.