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

Spring Data REST to use a multi-segment path for a repository resource

    Details

      Description

      @RepositoryRestResource(collectionResourceRel = "users", path = "system/users")
      public interface UserRepository extends PagingAndSortingRepository<User, Long> {
         ...
      }
      

      this generates the following, when I goto http://localhost:8080

      {
         "_links": {
         "users": {
         "href": "http://localhost:8080/system/users{?page,size,sort}",
          "templated": true
      },
      ...
      

      But when I goto http://localhost:8080/system/users

      It gives an error

      Fri May 22 17:56:37 IST 2015 There was an unexpected error (type=Not Found, status=404). No message available
      

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              farajfarook Faraj Farook
              Last updater:
              Oliver Drotbohm
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: