https://kotlinlang.org logo
#http4k
Title
# http4k
d

dave

04/23/2020, 12:40 PM
you just need to add the person/xsd one first because otherwise the wildcard will match
c

Cosmin Victor Celea

04/23/2020, 1:24 PM
Copy code
return "/personer/arkiv/{personalId}" meta {
is wierd that if i call for example on this endpoint /personer/arkiv/123
it does not go on the endpoint
d

dave

04/23/2020, 1:25 PM
aha!
you've misunderstood the API
for the contract routing you need to cut it up into typesafe segments
one mo
you need something like:
Copy code
routes += "/echo" / Path.of("name") meta {
            summary = "echo"
            queries += ageQuery
        } bindContract GET to ::echo
the path definition doesn't work in thesame "inline" tokenised way as the standard routing
2 Views