API Mocking with Mock Service Worker for REST and GraphQL
Intercept network requests, mock REST and GraphQL endpoints, and build reliable tests using Mock Service Worker (MSW) without relying on live backend servers.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
Modern web development requires seamless integration with APIs, but relying on live backends during development and testing often leads to slow workflows and brittle tests. Mock Service Worker (MSW) solves this by intercepting network requests at the browser and network level, giving you total control over API responses.
In this text-based course, you will transition from struggling with inconsistent API environments to confidently mocking complex network behaviors. You will learn how to write clean, maintainable mock definitions that run seamlessly in both browser environments and Node.js testing setups.
What you'll learn:
- Understand the core concepts of Service Workers and how MSW intercepts network traffic without altering your application code
- Mock REST API endpoints using modern declarative handlers and custom response resolvers
- Mock GraphQL queries and mutations to handle complex data fetching scenarios
- Configure MSW for both browser-based prototyping and Node.js-based unit and integration testing
- Handle advanced scenarios like network errors, latency simulation, and dynamic mock states
- Apply best practices for structuring mocks in modern frontend architectures and testing frameworks
You will start by learning the foundational terminology of API mocking and Service Workers. From there, you will progress through step-by-step written tutorials and structured code exercises, moving from basic REST mocks to advanced GraphQL scenarios and automated test integration.
This course is designed for beginner frontend developers, test engineers, and web developers who want to improve their testing and prototyping workflows. No prior experience with MSW is required, though a basic understanding of JavaScript and APIs is helpful.
Start mastering network control today and build more resilient web applications.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 48 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
المتعلمون أخذوا أيضًا
🎓 بشهادة
تطوير REST APIs مع Python و Flask و Docker
شهادة
تطبيق عملي
DH 500
→
💼 جاهز لسوق العمل
🎓 بشهادة
خدمات RESTful في Oracle APEX باستخدام ORDS
شهادة
تطبيق عملي
DH 500
→
💼 جاهز لسوق العمل
🎓 بشهادة
اختبار الواجهة البرمجية للبريد: دليل خطوة بخطوة للمبتدئين
شهادة
تطبيق عملي
DH 500
→
🔥 رائج
🎓 بشهادة
بناء ونشر واجهات برمجة تطبيقات REST باستخدام Python و FastAPI
شهادة
تطبيق عملي
DH 500
→
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف DH 1,000 واحصل على 200 رصيد، بحيث تكلف كل دورة حوالي DH 125.00. لا تنتهي صلاحية الأرصدة أبداً.
DH 1,000
200 رصيد
DH 125.00 / دورة
أفضل قيمة
DH 2,500
550 رصيد
DH 113.64 / دورة
DH 5,000
1200 رصيد
DH 104.17 / دورة
الرصيد يصلح لأي دورة ولا ينتهي.