I can get one book from Spring Data REST with a call, for example: GET / book / {id}
Now, if I know the identifiers of two books, and I want to get them all at once? What should be the call? I tried the following, but it returns me different books than the ones indicated:
GET /book?ids=id1,id2
You can declare a request method in your repository interface as follows:
List<Book> findByIdIn(@Param("ids") Long[] ids);
So you can request books this way:
GET /book/search/findByIdIn?ids=1,6,9
Source: https://habr.com/ru/post/1548607/More articles:Calling Java method String split ("|") not working correctly - javajava.lang.NoClassDefFoundError: android.os.AsyncTask - androidHow to check toast message in selendroid - javaUse case for pagination of embedded resources - spring-dataLine of points between points - cssHow to avoid crashes when the imported file is unavailable? .. iOS 7 - iphoneLambda expression Select Min and Max at the same time - c #"Последовательность не содержит исключений элементов при инициализации ninject - c#Visual Studio 2013 DLL Export Communication Error (LNK2019 / LNK1120) - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1548612/use-all-cores-to-train-ann-via-neuralnet&usg=ALkJrhjtn-d_-83OG4fGWbVCHHgtIgeGVgAll Articles