jensoleg / swagger-ui

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://swagger.io
Other
1.14k stars 310 forks source link

Sandbox response body and header syntax highlighting #8

Closed dmyers closed 9 years ago

dmyers commented 9 years ago

Would it be useful? I've been trying to get it to use the same highlight code after sending a request, but haven't gotten it to work.

jensoleg commented 9 years ago

I've fixed it. Unfortunately some of the code in OperationView was commented out. Swagger uses the highlight.js library for syntax highlighting the responses.

Next week I will try to add the request and response content-type to the UI. This is missing at the moment. On vacation the next days :+1:

jensoleg commented 9 years ago

OK just reached to add a response content selection box - have fun !

dmyers commented 9 years ago

Oh I gotcha. That looks really great, thank you. :+1: Enjoy your time off, you earned it!