Kauri Documentation
 PreviousHomeNext 
6.2 The full picture: how a request is routedBook Index6.3.2 The steps to introduce routing

6.3 Routing first steps

6.3.1 Outline

For the purpose of this routing introduction, we assume you have already a working Kauri project with at least one module.

If you set up a project using the archetype, then all the steps below will already have been done.

The steps to use the routing are as follows:

  1. add the routing module to your wiring.xml file
  2. import the routing service in your module's Spring container
  3. create a router instance as Spring bean using the routing service
  4. export the router as a restservice
  5. mount the exported restservice on a path
  6. (optional) customize the default built-in routing by creating a routing.groovy file

These are all small steps, most of which you are already familiar with. We explain them in detail below.

 PreviousHomeNext 
6.2 The full picture: how a request is routed6.3.2 The steps to introduce routing