houdiniproject / houdini

Free and open source fundraising infrastructure for nonprofits and NGOs
https://houdiniproject.org
Other
181 stars 93 forks source link

[FEATURE] API for getting a single event object #632

Open wwahammy opened 2 years ago

wwahammy commented 2 years ago

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

github-actions[bot] commented 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!