Content Negotiation

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€42.74
List Price:  €59.84
You save:  €17.09
£36.97
List Price:  £51.76
You save:  £14.79
CA$68.48
List Price:  CA$95.88
You save:  CA$27.39
A$75.98
List Price:  A$106.39
You save:  A$30.40
S$63.92
List Price:  S$89.49
You save:  S$25.57
HK$392.36
List Price:  HK$549.33
You save:  HK$156.97
CHF 39.73
List Price:  CHF 55.63
You save:  CHF 15.89
NOK kr506.29
List Price:  NOK kr708.85
You save:  NOK kr202.56
DKK kr318.93
List Price:  DKK kr446.53
You save:  DKK kr127.60
NZ$82.96
List Price:  NZ$116.15
You save:  NZ$33.19
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,077.26
List Price:  ৳8,508.66
You save:  ৳2,431.39
₹4,290.73
List Price:  ₹6,007.37
You save:  ₹1,716.63
RM212.58
List Price:  RM297.63
You save:  RM85.05
₦76,410.71
List Price:  ₦106,981.11
You save:  ₦30,570.40
₨14,215.90
List Price:  ₨19,903.40
You save:  ₨5,687.50
฿1,621.92
List Price:  ฿2,270.82
You save:  ฿648.89
₺2,008.03
List Price:  ₺2,811.40
You save:  ₺803.37
B$277.94
List Price:  B$389.15
You save:  B$111.20
R895.94
List Price:  R1,254.38
You save:  R358.44
Лв83.64
List Price:  Лв117.11
You save:  Лв33.46
₩68,944.20
List Price:  ₩96,527.40
You save:  ₩27,583.20
₪166.72
List Price:  ₪233.43
You save:  ₪66.70
₱2,823.85
List Price:  ₱3,953.62
You save:  ₱1,129.76
¥7,326.28
List Price:  ¥10,257.37
You save:  ¥2,931.09
MX$931.82
List Price:  MX$1,304.62
You save:  MX$372.80
QR181.99
List Price:  QR254.80
You save:  QR72.81
P667.26
List Price:  P934.22
You save:  P266.96
KSh6,473.70
List Price:  KSh9,063.70
You save:  KSh2,590
E£2,474.21
List Price:  E£3,464.09
You save:  E£989.88
ብር6,843.63
List Price:  ብር9,581.63
You save:  ብር2,738
Kz45,840.83
List Price:  Kz64,180.83
You save:  Kz18,340
CLP$47,851.92
List Price:  CLP$66,996.52
You save:  CLP$19,144.60
CN¥358.35
List Price:  CN¥501.72
You save:  CN¥143.37
RD$3,014.39
List Price:  RD$4,220.39
You save:  RD$1,206
DA6,486.83
List Price:  DA9,082.09
You save:  DA2,595.25
FJ$112.16
List Price:  FJ$157.03
You save:  FJ$44.87
Q383.92
List Price:  Q537.52
You save:  Q153.59
GY$10,456.33
List Price:  GY$14,639.70
You save:  GY$4,183.37
ISK kr6,086.59
List Price:  ISK kr8,521.71
You save:  ISK kr2,435.12
DH450.03
List Price:  DH630.08
You save:  DH180.05
L843.71
List Price:  L1,181.27
You save:  L337.55
ден2,632.71
List Price:  ден3,686.01
You save:  ден1,053.29
MOP$404.11
List Price:  MOP$565.78
You save:  MOP$161.67
N$886.32
List Price:  N$1,240.92
You save:  N$354.60
C$1,837.13
List Price:  C$2,572.13
You save:  C$735
रु6,855.24
List Price:  रु9,597.89
You save:  रु2,742.64
S/177.28
List Price:  S/248.21
You save:  S/70.93
K206.20
List Price:  K288.70
You save:  K82.50
SAR187.48
List Price:  SAR262.49
You save:  SAR75.01
ZK1,156.96
List Price:  ZK1,619.84
You save:  ZK462.87
L217.29
List Price:  L304.23
You save:  L86.93
Kč1,054.75
List Price:  Kč1,476.74
You save:  Kč421.98
Ft17,060
List Price:  Ft23,885.37
You save:  Ft6,825.36
SEK kr477.92
List Price:  SEK kr669.13
You save:  SEK kr191.20
ARS$63,089.75
List Price:  ARS$88,330.71
You save:  ARS$25,240.95
Bs346.09
List Price:  Bs484.56
You save:  Bs138.46
COP$200,628.72
List Price:  COP$280,896.26
You save:  COP$80,267.54
₡25,205.82
List Price:  ₡35,290.17
You save:  ₡10,084.34
L1,317.23
List Price:  L1,844.23
You save:  L527
₲387,342.82
List Price:  ₲542,310.94
You save:  ₲154,968.12
$U2,032.01
List Price:  $U2,844.98
You save:  $U812.96
zł182.85
List Price:  zł256
You save:  zł73.15
Already have an account? Log In

Transcript

Hello guys, welcome to the 10th session of the as we don't have VBA tutorials in this lesson we will learn about the content negotiation. Content negotiation means the setting the content type of the server that returns for that we need to use the Accept header, the content type or the acceptable for the response we need to set the header during the URL request. Let's switch to postman and he. First of all we are trying to retrieve the all of the a product which return in the form of deities and what what happened to you want to return in the form of the XML. For that, you need to specify the header accept XML click on the send button which will return the data in the form of the XML. For this and you need to write the JSON and click on the send button, which will return in the form of the Jason.

You can also specify the multiple accept type, by separating comma. You can also use the equality factor, that is a cue. For that you need to write the semicolon to equal to some value, let's say 0.5 and click on the send button. You can see that it returned in the form of the XML instead of the ages and how our Jason was written first. The reason for that is that we specify the quality factor for Jason is 0.5. And there we are not specify the quality factor for the XML.

So it by default, take the one so one is Higher than it will choose the higher one. If you specify the quality factors 0.3 for the XML then you will select the Jason syntax for the activities that accept colon MIME type semicolon quality factor equal to the sum value and comma separated by the some other MIME type. There are various Monday ba which are supported but the JSON and the XML are the most commonly used MIME type. Thanks for watching. Have a nice day.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.