``` @location("/a/{id}/b") class Foo(val id : Int,...
# ktor
o
Copy code
@location("/a/{id}/b") class Foo(val id : Int, val optional : String = "default”) {
   @location(“details”) class Details(val foo: Foo, value: String)
}
…
get<Foo.Details> { … }
So this get will be called when trying to GET "/a/b/1/details?optional=yes&value=Munich” and will receive Details instance, where foo is Foo(1,”yes”) and value is “Munich”.