Use `js-client`
ehmicky opened this issue · 0 comments
ehmicky commented
Our JavaScript client provides with a standard way to request the Netlify API and parse its response in a standard way. It includes some nice features such as automatic retries.
We probably should use it inside the plugin instead of re-implementing the request logic.
At the moment, this is not possible because the API endpoint is not in our OpenAPI specification yet (since this is an unannounced feature). However, this could be interesting to investigate once this endpoint becomes available in OpenAPI. Also, we could allow the js-client to call custom Netlify API endpoints as suggested in netlify/js-client#156.