oax
oax copied to clipboard
restore last api spec on next visit
This commit contains changes to store the most recent api spec url in localStorage and to restore this api spec on the next visit.
Hello @drejahl!
-
How does it work regarding bookmarability? Does is mean same root URL would lead to diferent spec or does it redirect to URL with query? How can user restore original "clean" state?
-
There is Recent tab in left drawer, and last the URL is on top of RECENT items in vuex store - which is not localStored yet, but it should be preffered way.
Hi @drosh, re 1: There is no impact on bookmarkeability. If no url is given as a query parameter in the url it retrieves the saved recent spec from localstorage before defaulting to the one in the configuration file (which is github). re 2: Yes, I agree - it would be desirable to save all recents in the localstorage instead of Vuex store. I am happy to look if this can be done with reasonable effort.
Cheers, Dirk