Skip to content

refactor: API structure refactor and testing. No api changes

Hadrien Froger requested to merge refactor/api into main
  • refactor: remove instance and place it in decidim. instance -> decidim/*
  • refactor: remove webhooks and place it in notification
  • tests: add a test suit to test the refactor

===

Why

  1. We talk in natural language about Decidim and instance for the same thing: Decidim Instance. We know have only one directory "Decidim" that exposes the endpoint firstInstall and is merged with the model Instance.
  2. Webhooks are saved in DB for safety but come directly from our voca gem tasks. As strapi don't control what this service send to him, it is not safe to exposes an API. It's why we have notification model. Webhook stores private informations, Notification public outcomes.

Merge request reports

Loading