def metadata(self, file_path, params=None):
url_base = self.hs.url_base<EOL>url = "<STR_LIT>".format(url_base=url_base,<EOL>pid=self.pid,<EOL>file_path=file_path)<EOL>if params is None:<EOL><INDENT>r = self.hs._request('<STR_LIT:GET>', url)<EOL><DEDENT>else:<EOL><INDENT>headers = {}<EOL>headers["<STR_LIT:Content-Type>"] = "<STR_LIT:application/json>"<EOL>r = self.hs._request("<STR_LIT>", url, data=json.dumps(params), headers=headers)<EOL><DEDENT>return r<EOL>
:params:
    title: string
    keywords: array
    extra_metadata: array
    temporal_coverage: coverage object
    spatial_coverage: coverage object

:return:
    file metadata object (200 status code)