ASP.net core web api
Open in Telegram
قناة تليجرام عربية متخصصة في بناء API بواسطة ASP.net core و sql server يمكنك بناء اي مشروع بأي فكرة كانت وعلى اي لغة بناء واجهات بواسطتها ويمكن ربطها معا Flutter وغيرها بكل سهولة
Show more224
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
REST API Cheatsheet. The method to download high-resolution PDF is available at the end.
This guide is designed to help you understand the world of RESTful APIs in a clear and engaging way.
What's inside:
- An exploration of the six fundamental principles of REST API design.
- Insights into key components such as HTTP methods, protocols, versioning, and more.
- A special focus on practical aspects like pagination, filtering, and endpoint design.
Whether you're beginning your API journey or looking to refresh your knowledge, this blog and cheat sheet combo is the perfect toolkit for success.
–
Subscribe to our newsletter to download the 𝐡𝐢𝐠𝐡-𝐫𝐞𝐬𝐨𝐥𝐮𝐭𝐢𝐨𝐧 𝐜𝐡𝐞𝐚𝐭 𝐬𝐡𝐞𝐞𝐭. After signing up, find the download link on the success page: https://bit.ly/3tMUM2B
رابط المقال الاصلي لاحد المطورين المحترفين
https://www.linkedin.com/posts/alexxubyte_systemdesign-coding-interviewtips-activity-7150890664833011712-BLiO?utm_source=share&utm_medium=member_desktop
في الصورة جزء من صفحة ويب لاستعراض جميع عمليات API و تتيح الصفحة استخدام وتجربة العمليات
وهذه الصفحة يتم انشائها تلقائياً دون تدخل منك
دالة سي شارب عادية جدا تستخدم
Entity framework " اختياري "
واعلى الدالة تحدد نوعها كـ HTTP methods
كما هو مؤشر في الصورة
Get One:
وهي عبارة عن عملية Select لحساب واحد.
وهنا نرسل لها رقم الحساب " المفتاح الرئيسي ".
Delet:
وهي عبارة عن عملية Delete.
وهنا نرسل لها رقم الحساب " المفتاح الرئيسي ".
Put:
وهي عبارة عن عملية Update.
وهنا نرسل لها البيانات الجديدة للحساب المراد تعديل بياناته.
Post :
وهي عبارة عن عملية Insert.
وهنا ترسل لها بيانات الحساب المراد اضافته الى قاعدة البيانات.
Get :
وهي عبارة عن عملية Select.
وهنا تجلب لي بيانات عدة جداول " اذا لم احدد لها شرط ستجلب كل الحسابات ".
مثال بسيط يشرح فائدة API
لدينا في الصورة API تتعامل مع قاعدة بيانات تحتوي على حسابات النظام.
يوجد لدينا 5 عمليات وهي :
Get :
وهي عبارة عن عملية Select.
وهنا تجلب لي بيانات عدة جداول " اذا لم احدد لها شرط ستجلب كل الحسابات ".
Post :
وهي عبارة عن عملية Insert.
وهنا ترسل لها بيانات الحساب المراد اضافته الى قاعدة البيانات.
Put:
وهي عبارة عن عملية Update.
وهنا نرسل لها البيانات الجديدة للحساب المراد تعديل بياناته.
Delet:
وهي عبارة عن عملية Delete.
وهنا نرسل لها رقم الحساب " المفتاح الرئيسي ".
Get One:
وهي عبارة عن عملية Select لحساب واحد.
وهنا نرسل لها رقم الحساب " المفتاح الرئيسي ".
مخطط توضيح مكونات api متكاملة
رابط المقال الاصلي لاحد المطورين المحترفين
https://www.linkedin.com/posts/alexxubyte_systemdesign-coding-interviewtips-activity-7156688533682855936-oPCE?utm_source=share&utm_medium=member_desktop
1. HTTP GET
This retrieves a resource from the server. It is idempotent. Multiple identical requests return the same result.
2. HTTP PUT
This updates or Creates a resource. It is idempotent. Multiple identical requests will update the same resource.
3. HTTP POST
This is used to create new resources. It is not idempotent, making two identical POST will duplicate the resource creation.
4. HTTP DELETE
This is used to delete a resource. It is idempotent. Multiple identical requests will delete the same resource.
5. HTTP PATCH
The PATCH method applies partial modifications to a resource.
6. HTTP HEAD
The HEAD method asks for a response identical to a GET request but without the response body.
7. HTTP CONNECT
The CONNECT method establishes a tunnel to the server identified by the target resource.
8. HTTP OPTIONS
This describes the communication options for the target resource.
9. HTTP TRACE
This performs a message loop-back test along the path to the target resource.
اولأ يجب ان تعرف ما هي العمليات الناتجة عن بناء ال api او بمعنى اخر عمليات API
رابط المقال الاصلي لاحد المطورين المحترفين
https://www.linkedin.com/feed/update/urn:li:activity:7147838111039836160?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A7147838111039836160%29
https://youtu.be/b8fFRX0T38M?si=dWPlrHePneNm6yFd
السلام عليكم ورحمة الله وبركاته
كبداية في تعلم بناء API بواسطة الدوت نت فأنا انصحكم بهذا الفيديو
الشخص الذي تعلمت منه asp.net core
اليوم اشاهد انا وانتم احدث اصدار من التقنية وهو الاصدار الثامن ...
البيئة المستخدمة الفيجوال استديو 2022
طبعآ الفيديو يعتبر كورس كامل لبناء API تتعامل معا SQLserver.
كود المشروع مرفق في وصف الفيديو
تتميز asp.net core web api بسرعة عالية في البناء ومتانة واداء قويان
تستخدم لغة السي شارب الشهيرة
في الكورس استخدم تقنية Entity framework 8 للارتباط معا قاعدة البيانات
واستخدم نمط code first لبناء قاعدة البيانات من خلال كود سي شارب .
هناك نمط اخر يدعى database first ومن خلال قاعدة البيانات يقوم ببناء كود سي شارب .
اطلع على نماذج كورسات اخر للفهم اكثر
