reviewboard.webapi.decorators¶
Decorators for API handlers.
- webapi_check_login_required(view_func)[source]¶
A decorator that checks whether login is required on this installation and, if so, checks if the user is logged in. If login is required and the user is not logged in, they’ll get a NOT_LOGGED_IN error.
- webapi_deprecated(deprecated_in, force_error_http_status=None, default_api_format=None, encoders=[])[source]¶
Marks an API handler as deprecated.
deprecated_in
specifies the version that first deprecates this call.force_error_http_status
forces errors to use the specified HTTP status code.default_api_format
specifies the default api format (json or xml) if one isn’t provided.