22 | | Reporting is a method of your resource, the reporting function will therefore be implemented as a custom method handler. |
23 | | |
24 | | Add the reporting function to your model file, and add it as a method to your resource, like: |
| 22 | Reporting is a method of your resource, the reporting function will therefore be implemented as a custom REST method handler function. |
| 23 | |
| 24 | To achieve this, add the reporting function to your model file, and specify it as a method to your resource using {{{s3xrc.model.set_method}}}, like: |