This is what the section of code looks like
    get{
      respondWithMediaType(MediaTypes.`application/json`){
          entity(as[HttpRequest]){
            obj => complete{
                println(obj)
                "ok"
            }
          }
      }
    }~
I can map the request to a spray.http.HttpRequest object and I can extract the uri from this object but I imagine there is an easier way to parse out the parameters in a get request than doing it manually.
For example if my get request is
 http://localhost:8080/url?id=23434&age=24
I want to be able to get id and age out of this request