انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهJNR-020-L01

الاتساق ميزة

  • الدرس 1 من 6
  • Junior
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

see why every endpoint should look and behave alike.

الموضوعات المخطط لها

  • A client developer learns one endpoint and expects the rest to work the same way.
  • Decide once: field naming (camelCase or snake_case), plural paths, error shape, page shape.
  • Write the decisions in a short style guide and check new endpoints against it.
  • Inconsistency costs time in every client, forever.
  • Consistency matters more than which choice you made.
تفاصيل المخطط المبدئي

عرض عملي

two endpoints side by side: one returns created_at, the other createdAt; one returns {"error":"x"}, the other a plain string. Mark each mismatch.

اختبر فهمك

What is the style guide for?

أظهر الإجابة

One set of decisions applied to every endpoint.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.