Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2750

REST API ignores expand=all on communities

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      Adding the expand=all parameter to the /communities REST endpoint should cause the response to include details about all communities. This is not the case:

      http://localhost:8080/rest/communities/115?expand=all

      <?xml version="1.0"?>
      <community>
      <expand>parentCommunity</expand>
      <expand>collections</expand>
      <expand>subCommunities</expand>
      <expand>logo</expand>
      <expand>all</expand>
      <handle>123456789/2150</handle>
      <id>115</id>
      <name>Faculty Publications</name>
      <type>community</type>
      <copyrightText/>
      <countItems>1654</countItems>
      <introductoryText/>
      <shortDescription/>
      <sidebarText/>
      </community>

      The error is on this line:
      https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-rest/src/main/java/org/dspace/rest/CommunitiesResource.java#L148

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: