I would start with making a DSL similar to what ro...
# ktor
o
I would start with making a DSL similar to what route spec output is:
Copy code
get(”/api/pets”) {
   specification {
      summary = "Everything about your Pets”
      doc = "List pets ordered by name.”
      consumes = ContentType.Application.Json
      … etc …
   }
}
It would use
Route.attributes
to store specification object when built.