illustration for Mock REST and GraphQL APIs with Mock Service Worker

Mock REST and GraphQL APIs with Mock Service Worker

43m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
60
people completed
Bookmark
Download
RSS

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!

Credits

Kamil Khadeyev (illustration)

Learner Reviews

  • Learner
    6 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I learned a lot about MSW. Artem explains things very well.

  • Ling Vu
    7 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    It was really easy to understand and contained all necessary information to start using MSW. Nice

  • Learner
    7 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I just finished this great MSW course. I learned useful tips about GraphQL mocking and was surprised to find out MSW can mock data streams too. It's been really helpful for my projects.

  • Cesar Hernandez
    8 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    This course provides initial insight into the MSW API in a Remix project all while giving us recommendations and use cases.

  • Learner
    8 months ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Succinct and very helpful for getting started. Thanks for the great content!

  • Learner
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Enjoyed the concise examples! Very useful and spoken like a true craftsman. Need more niche material like this.

Course Content

43m • 24 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    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

    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

    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.