illustration for Mock REST and GraphQL APIs with Mock Service Worker
pro

Mock REST and GraphQL APIs with Mock Service Worker

43m closed-captioning
·
24 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
51
people completed
Published 7 months ago
|
Updated 6 months ago

Controlling the network is the key to fast prototyping, bullet-proof tests, and efficient debugging.

Mocking the APIs you use gives you this kind of control but most methods in the client and server come up short.

That's where Mock Service Worker does it right.

With it you can intercept and take control of requests no matter where they're being made.

In this course, you will learn how to:

  • setup and your first request handler
  • mock complex flows like authentication
  • describe dynamic requests
  • respond with HTTP streams,
  • and use schema-first GraphQL mocking

After this course you'll be more than ready to bring MSW into your app and start mocking any kind of API you're using!

Course Content

43m • 24 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.