Tag: Web API
Main Content
Send a POST Request Containing a GraphQL Query with the Fetch API
Use the Fetch API to send a POST request containing a GraphQL query to a GraphQL API server, and display the data that is returned.
Create a Service Worker with TypeScript
Use TypeScript and the Service Worker Web API to create a service worker with a network first then cache caching strategy, that can show an offline page when no connection is available.
Submit FormData Object Using the Fetch API
Create an HTML form and post formdata with the ES6 Fetch API and TypeScript.