Each API call must have the following headers:
• “Accept”: “application/json”.
• “Content-Type”: for normal requests “application/json; charset=UTF-8” and for upload
records requests “multipart/form-data; charset=UTF-8”.
• “Accept-Language”: “ar”.
Each API call after login must have an additional header:
• “Authorization”: “Bearer {token}” where “{token}” should be replaced with returning
access token from the login API.
السؤال
أحمد عبد الله2
ما هو ال header الخاص ب api وما وظيفته ؟؟
هل المكتبة axios تدعم ال headers المذكورة هنا ؟؟
رجاء اريد شرح المطلوب هنا
Each API call must have the following headers: • “Accept”: “application/json”. • “Content-Type”: for normal requests “application/json; charset=UTF-8” and for upload records requests “multipart/form-data; charset=UTF-8”. • “Accept-Language”: “ar”. Each API call after login must have an additional header: • “Authorization”: “Bearer {token}” where “{token}” should be replaced with returning access token from the login API.
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.