Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Use js-client #54

Open
ehmicky opened this issue Sep 17, 2020 · 0 comments
Open

Use js-client #54

ehmicky opened this issue Sep 17, 2020 · 0 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Sep 17, 2020

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.

async function uploadBundle(buf, info, deployId, apiToken) {

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.

@ehmicky ehmicky added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

1 participant