Implement HTTP POST method

7 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.62
List Price:  €59.67
You save:  €17.05
£36.74
List Price:  £51.45
You save:  £14.70
CA$68.31
List Price:  CA$95.63
You save:  CA$27.32
A$76.94
List Price:  A$107.73
You save:  A$30.78
S$63.93
List Price:  S$89.51
You save:  S$25.57
HK$392.41
List Price:  HK$549.41
You save:  HK$156.99
CHF 39.85
List Price:  CHF 55.80
You save:  CHF 15.94
NOK kr506.49
List Price:  NOK kr709.13
You save:  NOK kr202.63
DKK kr318
List Price:  DKK kr445.23
You save:  DKK kr127.22
NZ$83.34
List Price:  NZ$116.68
You save:  NZ$33.34
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.46
৳6,135.96
List Price:  ৳8,590.84
You save:  ৳2,454.87
₹4,293.21
List Price:  ₹6,010.84
You save:  ₹1,717.62
RM211.70
List Price:  RM296.40
You save:  RM84.70
₦76,523.69
List Price:  ₦107,139.29
You save:  ₦30,615.60
₨14,200.22
List Price:  ₨19,881.45
You save:  ₨5,681.22
฿1,629.84
List Price:  ฿2,281.91
You save:  ฿652.07
₺1,998.99
List Price:  ₺2,798.75
You save:  ₺799.75
B$270.99
List Price:  B$379.41
You save:  B$108.42
R887.27
List Price:  R1,242.25
You save:  R354.98
Лв83.26
List Price:  Лв116.57
You save:  Лв33.31
₩68,437.78
List Price:  ₩95,818.38
You save:  ₩27,380.59
₪166.83
List Price:  ₪233.58
You save:  ₪66.74
₱2,832.83
List Price:  ₱3,966.19
You save:  ₱1,133.36
¥7,270.09
List Price:  ¥10,178.70
You save:  ¥2,908.61
MX$935.79
List Price:  MX$1,310.18
You save:  MX$374.39
QR182.81
List Price:  QR255.95
You save:  QR73.14
P662.56
List Price:  P927.63
You save:  P265.07
KSh6,458.70
List Price:  KSh9,042.70
You save:  KSh2,584
E£2,483.57
List Price:  E£3,477.20
You save:  E£993.62
ብር6,942.27
List Price:  ብር9,719.74
You save:  ብር2,777.46
Kz45,588.63
List Price:  Kz63,827.73
You save:  Kz18,239.10
CLP$46,514.69
List Price:  CLP$65,124.29
You save:  CLP$18,609.60
CN¥358.59
List Price:  CN¥502.05
You save:  CN¥143.46
RD$2,993.78
List Price:  RD$4,191.54
You save:  RD$1,197.75
DA6,480.18
List Price:  DA9,072.78
You save:  DA2,592.59
FJ$112.49
List Price:  FJ$157.49
You save:  FJ$45
Q384.60
List Price:  Q538.47
You save:  Q153.87
GY$10,464.86
List Price:  GY$14,651.64
You save:  GY$4,186.78
ISK kr6,070.28
List Price:  ISK kr8,498.88
You save:  ISK kr2,428.60
DH448.96
List Price:  DH628.58
You save:  DH179.62
L834.84
List Price:  L1,168.84
You save:  L334
ден2,622.86
List Price:  ден3,672.21
You save:  ден1,049.35
MOP$404.44
List Price:  MOP$566.24
You save:  MOP$161.80
N$879.88
List Price:  N$1,231.91
You save:  N$352.02
C$1,840.69
List Price:  C$2,577.11
You save:  C$736.42
रु6,830.50
List Price:  रु9,563.25
You save:  रु2,732.74
S/177.36
List Price:  S/248.33
You save:  S/70.96
K206.62
List Price:  K289.28
You save:  K82.66
SAR187.48
List Price:  SAR262.49
You save:  SAR75
ZK1,211.76
List Price:  ZK1,696.56
You save:  ZK484.80
L215.89
List Price:  L302.26
You save:  L86.37
Kč1,049.04
List Price:  Kč1,468.74
You save:  Kč419.70
Ft17,020.08
List Price:  Ft23,829.48
You save:  Ft6,809.39
SEK kr476.05
List Price:  SEK kr666.51
You save:  SEK kr190.46
ARS$56,163.76
List Price:  ARS$78,633.76
You save:  ARS$22,470
Bs345.65
List Price:  Bs483.94
You save:  Bs138.29
COP$199,874.76
List Price:  COP$279,840.66
You save:  COP$79,965.90
₡25,261.80
List Price:  ₡35,368.55
You save:  ₡10,106.74
L1,306.92
List Price:  L1,829.79
You save:  L522.87
₲398,640.10
List Price:  ₲558,128.04
You save:  ₲159,487.94
$U2,006.32
List Price:  $U2,809.02
You save:  $U802.69
zł181.02
List Price:  zł253.44
You save:  zł72.42
Already have an account? Log In

Transcript

Hello guys, welcome to success in all the VBA tutorials. In a previous lesson we are retrieving the data from the database. And in this session we are going to add the new data into the our database or we should research studio creating the new method for the post which take the which will take the product from the body and we need to use the trackers below. Using statement for the product entities. Within that using segment we're going to add the product in the products entity by using the Add method and specify the name of the object that is a protocol which come from the parameter in the body. And we need to see the changes into the database.

Now I'm going to write I'm going to copy the JSON format. change to the data array more parameter, click on body grow. csv the tison restrict, which does not need to specify the product ID. It should append I'm going to specify the ink of the quantity file boxes will be then so we'll be touching. Click on the send button. You can see that it returned to you 204 status, which means it does not show any content.

Now going to reload your database You can see that he did the euro. For our ng has for the Euro shadow, we need to record it and the 201 status code when the Our product is inserted and the return the product detail itself, as well as we need to return the location in the header from which it can be directly access setting that we need to switch to the Visual Studio. Instead of returning void we need to return the asset EP response message. We need to create the instance of the HTTP response message. says message equal to request dot query to response the Commissioner's court created which transport 201 and your protocol protect itself. We also need to specify the location where it can be accessible.

For that we need to add the header in the message object, message dot headers, but bless a dot headers dot block isn't equal to new UI request Request ui plus the product object, God, it's a product ID not pushing. And when we need to return our message that is our response with the HTTP status code, match request and do it accepts an object itself. We also need to return that message, but I forgot it. Click on do On Shree, stop watchmen and change you name that is a marker, it's quantity a product and boxes will be same. And I'm going to click on the send button. You can see that it written the status code 201 that is a created and the our entire product object, which also include the product ID itself.

That is eight. You can see that within the database, it will be eight. In this lesson, we'll learn how to how to use Do a POST request to add the data in the database. And here is a call to adding the new element in the database. Thanks for watching. If you have any doubt, please contact me

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.