Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to make a PUT call to a RESTful web service. The call include body content to specify the item to be returned. Body is not explicitly defined in the list of properties. How is it added to the object?

What I have tried:

Postman, to validate syntax and structure of call.
Posted
Updated 16-Dec-18 5:20am

1 solution

If you are using Postman to test the Web API then that has nothing to do with VB.NET itself, and you can configure them right from the Postman interface. Request body is provided for every request type, and in the same panel or tab that you are using to perform all the actions.

See this link to learn how to add request body to a request, https://learning.getpostman.com/docs/postman/sending_api_requests/requests/#request-body[^], you can also specify the kinds of request body you want to send, JSON, XML, or binary content.

If you mean you want to accept the data in VB.NET based Web API, then please check how to read the data from the HttpClient[^] object (or the type of the server framework you are using).
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900