Sets the not_found handler for the specified version of the api
(self, handler, version=None)
| 215 | return getattr(self, "_not_found_handlers", {}) |
| 216 | |
| 217 | def set_not_found_handler(self, handler, version=None): |
| 218 | """Sets the not_found handler for the specified version of the api""" |
| 219 | if not self.not_found_handlers: |
| 220 | self._not_found_handlers = {} |
| 221 | |
| 222 | self.not_found_handlers[version] = handler |
| 223 | |
| 224 | def documentation(self, base_url=None, api_version=None, prefix=""): |
| 225 | """Generates and returns documentation for this API endpoint""" |