Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-1034

Allow overriding exposure defined at the type level on the method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5.8 (Hopper SR8)
    • Fix Version/s: None
    • Component/s: Repositories
    • Labels:
      None

      Description

      What I want to accomplish is have all Repository methods not exported be default with the type level @RestRepositoryResource(exported=false) annotation, and expose only selected methods via the @RestResource(exported=true) annotation

      Here is a gist of what I'm trying to do https://gist.github.com/jeffsheets/f2c2488fdba30b170a760c91dcdd58a9

      It appears though that @RestRepositoryResource at the type level when set to false will take full precedence and not export the entire repository. No matter what the method level @RestResource annotations are set to.

      I'm not sure if this is a new feature request, a bug, or just my bad googling at finding an existing example of documentation.

      Project using Spring Boot 1.4.5, which uses Spring Data Hopper SR8

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              jasheets1 Jeff Sheets
              Last updater:
              Jeff Sheets
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: