resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Implement a findByIDs method #132

Closed sdeleuze closed 10 years ago

sdeleuze commented 11 years ago

In order to improve performances in higly distributed platform (avoir N call to findById) To be implemented at service and controler level

bmeurant commented 10 years ago

PR #132 resolves this issue.

findByIds API:

/api/albums?ids[]=2&ids[]=3:

[
    {
        "id": 2,
        "title": "Somewhere Within the Shadows",
        "publicationDate": "2000-11-01",
        "number": 1,
        "coverName": "blacksad-1.jpg",
        "series": 1
    },
    {
        "id": 3,
        "title": "Arctic-Nation",
        "publicationDate": "2003-03-01",
        "number": 2,
        "coverName": "blacksad-2.jpg",
        "series": 1
    }
]