Pynguins

New API Cheat Sheet

request.errors.add('url', 'name', 'This user exists!')
{"errors": [{"location": "url", "name": "name", "description": "This user exists!"}], "status": "error"}

print(dir(service_name))
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__',
'__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__',
'__subclasshook__', '__venusian_callbacks__', '__weakref__', '_cors_enabled', '_schemas',
'add_view', 'arguments', 'cors_enabled', 'cors_expose_all_headers', 'cors_headers',
'cors_max_age_for', 'cors_origins', 'cors_origins_for', 'cors_support_credentials',
'cors_support_credentials_for', 'cors_supported_headers', 'cors_supported_headers_for',
'cors_supported_methods', 'cors_supported_origins', 'decorator', 'default_filters',
'default_validators', 'defined_methods', 'definitions', 'delete', 'description',
'error_handler', 'filter_argumentlist', 'filters', 'get', 'get_acceptable', 'get_arguments',
'get_contenttypes', 'get_validators', 'list_arguments', 'mandatory_arguments', 'name',
'options', 'patch', 'path', 'post', 'put', 'renderer', 'schemas', 'schemas_for', 'validators']

Comments | Gallery