I have the following url : http://localhost/api/books/?bookId=21&bookId=62?authorId=2
But how i can retrieve all the bookId values with Scala ?
I'm using the PlayFrameWork as the WebServer, so here's my code :
val params = request.queryString.map { case (k, v) => k -> v(0) }
System.out.print(params.get("bookId"));
params.get("bookId") only get the last value in the bookId params. e-g : 62.
How can i retrieve all my bookId params ? Once i know how, i will be able to convert them into Integers.
Thanks,