(*args, **kwargs)
return wsme_pecan.wsexpose(*args, **kwargs)
Ensure that only JSON, and not XML, is supported.
Ensure that only JSON, and not XML, is supported.
Ensure that only JSON and not XML is supported .
def expose(*args, **kwargs):
    """Ensure that only JSON, and not XML, is supported."""
    if 'rest_content_types' not in kwargs:
        kwargs['rest_content_types'] = ('json',)
    return wsme_pecan.wsexpose(*args, **kwargs)
def expose ( * args , * * kwargs ) : if 'rest_content_types' not in kwargs : kwargs [ 'rest_content_types' ] = ( 'json' , ) return wsme_pecan . wsexpose ( * args , * * kwargs )