Exemple #1
0
 def __init__(self, *args, **kwargs):
     Api.__init__(self, *args, **kwargs)
     self.representations = {
         # 'application/xml': output_xml,
         # 'text/html': output_html,
         # 'text/csv': output_csv,
         'application/json': output_json,
     }
Exemple #2
0
 def __init__(self, *args, **kwargs):
     RestApi.__init__(self, *args, **kwargs)
     self.representations = {
         "application/json": output_json,
     }
Exemple #3
0
 def __init__(self, *args, **kwargs):
     RestApi.__init__(self, *args, **kwargs)
     self.representations = {
         "application/json": output_json,
     }