Closed dothebart closed 7 years ago
let me check in a bit
Thanks for your thorough spec. I was able to catch a few bugs from it :-)
So the current version of Pretty-Swag doesn't support embedded html yet. In case of Arango's spec, the embedded html can be replaced by a markdown.
''' json shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/simple/by-example <"collection" : "products", "example" : { "a" : { "j" : 1 } } } EOF HTTP/1.1 201 Created content-type: application/json; charset=utf-8 { "result" : [ { "_key" : "10598", "_id" : "products/10598", "_rev" : "UWx9mUK--", "a" : { "j" : 1 }, "i" : 1 } ], "hasMore" : false, "count" : 1, "error" : false, "code" : 201 } '''
Also you may find these params useful
pretty-swag -i spec.json -o arango.html -m -f lite -fixedNav -indent 3 -autotags false
One more thing. Pretty-Swag doesn't support mark down on schema's description yet. Try it out and let me know.
I wanted to try pretty-swap with our example over at https://github.com/arangodb/arangodb/blob/devel/js/apps/system/_admin/aardvark/APP/api-docs.json?raw=true
I tried it like this:
The installation looked like this: