houdini
houdini copied to clipboard
[FEATURE] API for getting a single event object
Is your feature request related to a problem? Please describe. If event objects are saved to the DB as described in #631, it needs to possible to get a single event object by id.
Describe the solution you'd like
GET /api/nonprofit/:nonprofit_id/object_events/:id where :id=event.id. This should do significant caching and use the JBuilder view helpers.
Additionally, it must be possible to expand given parts of the object event using the expand array parameter. As an example, if you want to expand the nonprofit and supporter fields, you would do the following:
GET /api/nonprofit/:nonprofit_id/object_events/:id?expand[0]=nonprofit&expand[1]=supporter
Depends on #631
:hourglass_flowing_sand: Alright! Looks like we need to wait for some dependencies:
- houdiniproject/houdini#631
:bulb: Don't worry, I will continue watching the list above and keep this comment updated. To add or remove a dependency please update this issue/PR description.
Brought to you by Dependent Issues (:robot: ). Happy coding!