Ideas

Custom data API endpoints

Custom data API endpoints

API

I'd love to be able to create custom API endpoints in a much more simple way than the current options. Right now, our choices are either to build a custom DLL or use the Lava webhooks feature to simulate an API endpoint.

The idea would be to make something that functions like the Dynamic Report block.  When you add an API endpoint, you can select a Report to use as the source. The report would specify the data to be returned. The linked DataView would by extension specify what data to return. And like the Dynamic Report block, as an admin I would be able to specify which filters can be modified by query string to allow custom filtering of the data.

As an example, I could then easily create an API endpoint that lists all Pending people by targeting the Pending Person report. Using the default report this would return "Name" and "Created Date Time" for each matched person. I could also expose the "Record Type" filter on the Data View to allow a query string parameter to change the default filtering and instead filter for pending businesses. Results might look something like:

[
  {
    "Id": 283,
    "Name": "Jack Harper",
    "CreatedDateTime": "8/24/2022 12:53 PM"
  },
  {
    "Id": 2937,
    "Name": "Will Jones",
    "CreatedDateTime": "8/24/2022 12:53 PM"
  }
]

Photo of Daniel HazelbakerSubmitted by Daniel Hazelbaker, Blue Box Moon  ·   ·  API
Login to add a comment...

Submission Success Tips

Cultivate your ideas for maximum impact with these helpful submission tips that will increase the chances of your brilliant concepts becoming reality.

  • Clear Title: Craft a straightforward and descriptive title that instantly conveys the essence of your idea.
  • Concise Description: Provide an idea description that is succinct, ensuring it effectively communicates the concept without unnecessary verbosity.
  • Provide Additional Details: With a concise description complete, now provide any other details that are needed to better understand the requirements.
  • Thorough Ministry Need Review: Provide a comprehensive overview of the ministry need your idea addresses, emphasizing its significance.
  • Cover the WHY: Clearly articulate the rationale behind your idea, explaining why it's essential and how it aligns with the organization's goals and mission. Oftentimes a clear "why" sheds light into other possible options.