• Resolved briannyc2009

    (@briannyc2009)


    Scott,

    Great work! Any chance of supporting the AP API (v2) for saving responses from the API as JSON files, not html?

    I tested Simply Static with the plugin (http://v2.wp-api.org/) enabled and my API endpoint (/wp-json/) was saved as an HTML file, and didn’t parse out any of the additional endpoints.

    It would be great to offload some of the API load, especially for read-only endpoints that aren’t updated frequently or at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi briannyc2009,

    That’s the first time I’ve heard a request to save off JSON responses. Presently Simply Static doesn’t do any JavaScript processing nor does it try to process any requests containing GET params. I think Simply Static probably wouldn’t be very well suited for what you’re trying to do.

    Even if Simply Static could save off JSON responses, you’d still have to do a fair bit of work in telling it which requests to try, and at that point I think you might be better off doing something separately from Simply Static — though if you disagree I’m all ears 🙂

    Best,
    Scott

    Thread Starter briannyc2009

    (@briannyc2009)

    Scott,

    Thanks for the quick reply. I’d thought I’d check before I rolled my own.

    Given the new WordPress direction to make everything access the API, might be worth a look.

    However, your plugin and my use case for a static version is a glorified cache. I’ll probably through Varnish in front instead and call it a day. 😉

    Cheers.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP API’ is closed to new replies.