Announcement

Collapse
No announcement yet.

Adding a way to list modules in api

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding a way to list modules in api

    Hi

    I am currently trying to build a Drupal 8 module to integrate EspoCRM. I need a way to list all installed modules.
    GET http://your_domain/api/v1/Modules
    Is that possible in a feature version?

  • #2
    Hello
    try api/v1/Extension

    Comment


    • #3
      Thanks for reply..
      This will only work it there is extension installed and even then you have to use string-manipulation in the list of full qualified list of filenames.

      Comment


      • #4
        Do you want the list of installed extensions (packages) or the list of modules (they could be added with extensions or manually)? One extension could have several modules.
        if you want just a module list you can get it with $metadata->getModuleList()

        Comment


        • #5
          Hi Tanja
          I need a way to get list of Modules for my CMS Drupal 8 module.
          $metadata->getModuleList() can not be listet via api.

          Comment


          • #6
            You have access to api/v1/Metadata, than in scopes you can find "module" parameter for each scope.
            empty value, "Crm", and "Custom" are internal modules.
            Last edited by tanya; 01-16-2018, 11:25 AM.

            Comment


            • #7
              Perfekt, this was exactly what i need, thanks.. :-)
              Maybe this feature should be added to the api-documentation?

              Comment

              Working...
              X