title: Recursively download resources from RESTful web service
body: <p>I'd like to recursively download JSON resources from a RESTful HTTP endpoint and store these in a local directory structure, following links to related resources in the form of JSON strings containing HTTP URLs.  Wget would seem to be a likely tool for the job, though its recursive download is apparently limited to HTML hyperlinks and CSS url() references.</p>
  
  <p>The resources in question are <a href="https://helloreverb.com/developers/swagger">Swagger</a> documentation files similar to <a href="http://petstore.swagger.wordnik.com/api/api-docs/pet">this one</a>, though in my cases all of the URLs are absolute.  The Swagger schema is fairly complicated, but it would be sufficient to follow any string that looks like an absolute HTTP(S) URL.  Even better would be to follow absolute or relative paths specified in 'path' properties.</p>
  
  <p>Can anyone suggest a general purpose recursive crawler that would do what I want here, or a lightweight way of scripting wget or similar to achieve it?</p>