rails restful routing

Hi,

I have a Books controller and I need to configure restful routes for API webservice.I need to set the routes for the below urls

books/book_id/search
books/book_id/delete
books/book_id/next

How do i do it

If you haven't worked through a tutorial, do that first. If you have,
read (or re-read) http://guides.rubyonrails.org/routing.html.