Introduction to Mock REST and GraphQL APIs with Mock Service Worker

Share this video with your friends

Social Share Links

Send Tweet
Published a year ago
Updated a year ago

Hi! My name is Artem. In this course, I will teach you how to mock REST and GraphQL APIs with Mock Service Worker. Together, we will build a movie streaming application and you will learn how to intercept both server-side and client-side requests and mock responses using standard JavaScript API. This is a state-of-the-art mock-first prototyping with MSW.

  • Join my Discord server to go through the course with others, ask questions, and share feedback. See you there!

Instructor: [0:00] Hi. My name is Artem. I'm super excited to be your instructor at Egghead and teach you how to mock REST and GraphQL APIs with Mock Service Worker.

[0:08] Historically, API mocking has gathered the stigma of being hacky, dirty if you would, but you will learn firsthand how that's not the case anymore. In fact, together we're going to build an entire application against a mock network that spawns zero servers and requires no changes to the actual source code.

[0:24] It's not going to be a simple to-do app either. We will build a movie streaming application that communicates with both REST and GraphQL APIs, third party and local, and you will learn how to intercept those requests and mock the responses using the standard JavaScript API.

[0:38] Now, I designed this course to be beginner-friendly, so don't worry if you've never used MSW or other API mocking solutions before. It's the perfect place for you to start if you haven't, but even if you've been using MSW for some time now, I still highly recommend you watch this course because it's going to show you how to use the new version of the library. I know you're going to love it.

[0:56] I worked really hard on these lessons, and it's the most complete introduction to MSW ever. I can't wait for you to discover that for yourself, and see you in the first lesson.

egghead
egghead
~ 2 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today