Open wwahammy opened 2 years ago
:hourglass_flowing_sand: Alright! Looks like we need to wait for some dependencies:
: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!
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
andsupporter
fields, you would do the following:GET /api/nonprofit/:nonprofit_id/object_events/:id?expand[0]=nonprofit&expand[1]=supporter
Depends on #631