restapi.rest.response.ResponseMaker
- class restapi.rest.response.ResponseMaker[source]
- __init__()
Methods
__init__()convert_model_to_schema(schema)- param schema:
Possible outputs: '/' 'application/json' 'text/html' 'application/xml' 'text/csv'
get_html(content, code, headers)- param content:
get_schema_type(field, schema[, default])- param field:
gzip_response(content, code, ...)- param content:
is_binary(content_type)- param content_type:
respond_with_schema(schema)- param schema: