metosin / reitit

A fast data-driven routing library for Clojure/Script
https://cljdoc.org/d/metosin/reitit/
Eclipse Public License 1.0
1.43k stars 257 forks source link

Generate Responses from spec'd endpoints #37

Open ikitommi opened 7 years ago

ikitommi commented 7 years ago

when api-docs are generated, there should be enough helpers to provide example output based on the spec (generators).

valerauko commented 5 years ago

I think this is already happening in swagger-ui though? It definitely has example values

ikitommi commented 5 years ago

It definetely has, but I was thinking that the endpoint could be made to response with sample data without having any implementation, the conforms to the spec/schema. e.g. a dummy server.