joffrey-bion / livedoc

A not-so-annotation-based documentation generator for REST and websocket services
MIT License
4 stars 2 forks source link

Livedoc-UI forgets the url if an error occurs during loading #80

Closed ST-DDT closed 6 years ago

ST-DDT commented 6 years ago

If I use livedoc-ui 4.2.0 and press the Get Doc button and I have a typo in the URL (or an error occurs), it will reset the input back to its default http://localhost:8080/jsondoc.

It would be nice if the passed URL is preserved so you can check it for errors and fix it.

joffrey-bion commented 6 years ago

Good point, this is indeed annoying and should be fixed. One way to work around this is to provide the json doc URL directly as a query parameter:

http://your.livedoc.host/livedoc/index.html?url=http://your.app.host/jsondoc