This is an example of someone who has deep knowledge of the subject. The deeper is the knowledge the simpler they can describe and convey it. This example even give a super-fast MVC Tutorial in a nutshell!
Thank you for your valuable time in posting this! Very much appreciated. I do have a question if you dealt with serializing data using Newtonsoft Json but returns to Postman with escape characters like . Again, thanks!
WOW..exactly what I was looking for!! i´m working on a IoT mesh with several nodeMCU esp8266...plan is to send data via REST posts...THIS is now closing the gap :-)
Thanks for doing this. My background in developing isn't conventional/formal and videos like this are completely idiot proof and helpful. I did have some issues but I resolved them by modifying the global.asax file as advised in the readme file that opened in Visual Studio 2013. I'm looking forward to expanding my arsenal with REST.
It’s always not formally trained developers who achieve the best results because their interests were not a salary to begin with, but a way to give life to their ideas.
Hi Timothy, There are several client videos up. Here is one using C# and Winforms: ua-cam.com/users/edit?o=U&video_id=Nfgnlg3a4lg Hope that helps and thanks for watching! Jon
June 2018 - For the Postman Chrome Extension - now looks like " Tabbed Postman - REST Client 0.8.4.19" but maybe that's just my system, and no shortcut option. Will try elsewhere.
Hi Jon. That was great, thank you. Is there any chance you can continue with this and show how to do a Put and Post? Specifically passing in data to the parameters.
Hi Rodney, Thanks for watching! There is a playlist of videos with videos dedicated to PUT, POST and DELETE here: ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html Jon
very nice. For what it's worth my next question is how to pass in parameters in the URL. I just finished the video and it was exactly what I needed and I'm sure I'll figure out command line params... But that's what I need next. Thank you for the vid!!
@@telejonjensen Very nice video, I am able to get data using store procedure with the given example, can you help with the video to post, i realize all video in the link are for c#, is there a way to do in vb. and if possible how to upload the site in iis and perform post using local ip (private). database is sql 2014
Hola Lisseth, Hay una serie de videos en esta lista de reproducción. Parte 2 está allí. ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html ¡Gracias por ver! Jon
Very good video. Just one question: how can I pass strings to a REST service? The first get accept nothing and the second accept only an id and I need to pass two strings. thankyou!
Hi Davide, There are several videos in the playlist and I build up the APIs in the manner you are describing. Here is the playlist : ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html Here is an example Put and Get, all you have to do is add the parameters in the methods in the controller. public HttpResponseMessage Put(long id, [FromBody]Person value) { public Person Get(String lastName, String firstName) Thanks for watching! Jon
Great video, the explanations are always based on new projects, how can I just add the one vb file to an existing iis path, and set the API path, without creating a new project,
@@telejonjensen I have taken eg. A files save webapi from sync fusion in c#, converted it to script code vb in aspx, and run the sub on start, now the aspx is doing exactly the same as the webapi, which gives me one mio files and dirs, kills all sessions on republish etc, now I just modify the aspx, publish it, and after first call and compilation I have my compiled version that is just as fast as a precompiled c# file, or am missing something in my concept, do you think there is some way to get around this with global variables and other issues with the normal aspx files? I want my webapi not to consist of many different projects, seems to make everything very complicated if you are not a global IT firm, thanxs
Hii.. I tried to run the exact same as you did using Visual Studio 2019 and I keep getting "http error 403.14 - forbidden" without showing the web screen saying that it is starting..Any idea on how to fix this?
Do you do your requests on localhost ? If not try to see if it’s not a firewall problem. And also you should re-install Visual Studio because it can be a corrupted framework/files-dependencies missing issue.
Hi Edward, I have a whole playlist of videos in C#. I may do more Visual Basic in the future but for now that is the only one for VB. It should be easy to watch the C# ones and do the examples in Visual Basic. Thanks for watching! Jon
Thanks Mr Jon. Just one more question if you don't mind, how could i implement this in VB. (HttpRespondMessage) inside rest api controller . I try to google on any site, but still no like. Here example in c# public HttpResponseMessage Get() { EmployeeData entites = new EmployeeData(); return Request.CreateResponse(HttpStatusCode.OK, entites.GetAllEmployee()); } Thanks
edward lie Hi Edward, you probably had a response since then but here is a translation: Public Function Get() as HttpWebResponseMessage Dim entities() as New employeeData() Return Request.CreateResponse(HttpStatutCode.OK, entities.GetAllEmployees()) End Function It’s also very important to use the Try Catch when performing an action of which it can have a failure. And last but not least, if you struggle with C# and can’t convert from the head there are plenty of online converters free to use especially made for that purpose (Telerik Converter is the best from what I heard). Have a nice day.
@@telejonjensen Hello Jon. Well I like Vb.net than C#. So I cant find samples on How to develop a WEBApi returning a JSON using Vb.net. All the samples are with C#. This is what I'm looking. Thanks for your time.
Hi Joaquin, WebAPI will automatically return JSON for you if you add a header to your request that is this: Key: Accept Value: application/json Accept:application/json Postman by default includes this header: Accept:*/* Which means anything the server sends is accepted. I hope that helps. Jon
@@telejonjensen ok I did see your playlist, but you start with VB NET, so I wonder if you will make a continuation in VB, it will be a great help not only for me, but for many VB programmers.
Hi David, I haven't done a video on a VB client but it will be very similar to C# and there are videos on that here: ua-cam.com/video/i1HSG7ttDtM/v-deo.html and here: ua-cam.com/video/8JQhXCEdOt8/v-deo.html. Thanks for watching! Jon
straight forward using free software - thanks a lot; audio quality is bad - perhaps a better microphone for the next videos - I can recommend Neumann KM184 - good for language and instrument recordings - about 150 EUR used on eBay
Hi Mario, Thanks for watching. I've switched to a Blue Yeti microphone for the ASP.Net Core 2.0 videos (and any others I do going forward). Thanks for the suggestion! Jon
Very Helpful, I suggest to place the links of the other videos that shows C# in the description so it easier found also if you have Android App example to connect to this api will be very helpful. Thanks update: found this ua-cam.com/video/cSsNI01Py3Q/v-deo.html would be helpful to be included in the description box
This is an example of someone who has deep knowledge of the subject. The deeper is the knowledge the simpler they can describe and convey it. This example even give a super-fast MVC Tutorial in a nutshell!
Hi Sasan, Thank you for your kind comments! Jon
Very clear tutorial. While watching the video, I did the same in c# instead of VB and it worked perfectly. Postman seems to be a nice tool.
Hi Ara,
Great! Thanks for watching!
Jon
Great tutorial as always. Waiting for the next episodes.
Hi,
Checkout the playlist : ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
Thanks for watching!
Jon
Brilliant - exactly what was needed and kept really simple
Hi,
Thanks for your comments and for watching!
Jon
nice explanation ,thanks.This is my first step in API development.
Hi, good luck on your project.
I just wanted to ask how it went ! :)
Thanks Jon for the VB.Net example. Your presentation was clear and concise.
Hi Dallas,
You are welcome. Thanks for watching!
Jon
THANK YOU for showing an example in VB!!
Just what i was looking for. Thanks a lot!
Hi Lucas,
I'm glad it was useful for you!
Jon
omg, that will really simple. Just what I was looking for.
Hi,
I'm glad it was useful.
Thanks!
Jon
Thanks for doing this . Your video is so much helpful for me
Exactly what I was looking for just that I need it in the old good classic ASP version,
good response will be very appreciate
Good stuff. simple and precise
Hi Dennis,
Thanks and thanks for watching!
Jon
Fantastic video. It is videos like this we wish Microsoft made..... Thank you.
Hi Peter,
Thanks for watching!
JOn
Great video! Thank you!
Hi Arturo,
Thanks for watching!
Jon
Thank you for your valuable time in posting this! Very much appreciated. I do have a question if you dealt with serializing data using Newtonsoft Json but returns to Postman with escape characters like
. Again, thanks!
WOW..exactly what I was looking for!! i´m working on a IoT mesh with several nodeMCU esp8266...plan is to send data via REST posts...THIS is now closing the gap :-)
Hi,
I'm glad it was useful! Thanks for watching!
Jon
I just realized that in my VS 2013 i am missing the WEB API stuff..i install now the free 2017 vs with all this material ...
Great video. Thanks.
Hi Leigh,
You are welcome, thanks for watching!
Jon
well done, very easy to follow.
Hi,
Thanks and thanks for watching!
Jon
thank you
Thanks for doing this. My background in developing isn't conventional/formal and videos like this are completely idiot proof and helpful. I did have some issues but I resolved them by modifying the global.asax file as advised in the readme file that opened in Visual Studio 2013.
I'm looking forward to expanding my arsenal with REST.
Hi Mark,
I'm glad it was useful! Thanks for commenting and watching!
Jon
It’s always not formally trained developers who achieve the best results because their interests were not a salary to begin with, but a way to give life to their ideas.
Thank You!!!
Muito obrigado, comecei a entender.
Oi Ricardo,
Você é bem vindo. Obrigado por assistir!
Jon
Good job. Helped me get up and running. Now I need a video on how to consume this REST API in a Windows application.
Hi Timothy,
There are several client videos up. Here is one using C# and Winforms: ua-cam.com/users/edit?o=U&video_id=Nfgnlg3a4lg
Hope that helps and thanks for watching!
Jon
@@telejonjensen Better link: ua-cam.com/video/Nfgnlg3a4lg/v-deo.html
June 2018 - For the Postman Chrome Extension - now looks like " Tabbed Postman - REST Client 0.8.4.19" but maybe that's just my system, and no shortcut option. Will try elsewhere.
AWSOME
i need more of these tutorials, Web Api with Visual Basic videos are so scarce
thanks,
Nice Video, Thank you alot
Hello Ahmed,
Thanks for watching!
Jon
Very useful video. Any samples of how to call the API from a VB app?
Hi Jon. That was great, thank you. Is there any chance you can continue with this and show how to do a Put and Post? Specifically passing in data to the parameters.
Hi Rodney,
Thanks for watching! There is a playlist of videos with videos dedicated to PUT, POST and DELETE here: ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
Jon
Will you be continuing this video series? Tutorials concerning Visual Basic APIs are very scarce and this was extremely helpful.
Hi Jacob,
Yes I can do some more based on VB.
Thanks for watching!
Jon
very nice. For what it's worth my next question is how to pass in parameters in the URL. I just finished the video and it was exactly what I needed and I'm sure I'll figure out command line params... But that's what I need next. Thank you for the vid!!
Hi Christopher,
Thanks for watching. There is a series of videos here: ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
Jon
@@telejonjensen Very nice video, I am able to get data using store procedure with the given example, can you help with the video to post, i realize all video in the link are for c#, is there a way to do in vb. and if possible how to upload the site in iis and perform post using local ip (private). database is sql 2014
Jon - great video. When is the next one coming out? So hard to find VB tutorials.
Hi Dan,
Thanks for watching. Is there something specific with VB you are interested in?
Jon
@@telejonjensen I would love to see c# videos that you did but using VB.
Hi jon, where the part 2? Tks
El titulo dice parte 1. Cuando publica la parte 2? Gracias, me sirvió mucho.
Hola Lisseth,
Hay una serie de videos en esta lista de reproducción. Parte 2 está allí.
ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
¡Gracias por ver!
Jon
HI I am looking for a video on " how to call an API from Visual Basic .Net," no much information. Thank you.
where can I find the remaining tutorial on VB? I can only find part 1
Hi,
I've only done that one but there is an entire series in C# and the calls are nearly identical.
Jon
Nice job, can you return a data table the same way?
Hi Ben,
Yes you can. .Net does a good job of converting types into JSON.
Jon
Very good video. Just one question: how can I pass strings to a REST service? The first get accept nothing and the second accept only an id and I need to pass two strings. thankyou!
Hi Davide,
There are several videos in the playlist and I build up the APIs in the manner you are describing. Here is the playlist : ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
Here is an example Put and Get, all you have to do is add the parameters in the methods in the controller.
public HttpResponseMessage Put(long id, [FromBody]Person value)
{
public Person Get(String lastName, String firstName)
Thanks for watching!
Jon
Thanks again, I will see your others video tutorial, you made a great job!!!!
brilliant intro - why have i been putting this off? its looks easy enough. Need to get to grips with security next
Hi Tony,
Let me know if you have any questions or suggestions.
Thanks for watching!
Jon
Jon Jensen thanks. It would be great to have a video on token based authentication. Preferably vb but c# is fine
Where is the part 2
Great video, the explanations are always based on new projects, how can I just add the one vb file to an existing iis path, and set the API path, without creating a new project,
Hi Walter,
I believe you will need to have a project created as there is startup code that has to execute.
Thanks for the question!
Jon
@@telejonjensen I have taken eg. A files save webapi from sync fusion in c#, converted it to script code vb in aspx, and run the sub on start, now the aspx is doing exactly the same as the webapi, which gives me one mio files and dirs, kills all sessions on republish etc, now I just modify the aspx, publish it, and after first call and compilation I have my compiled version that is just as fast as a precompiled c# file, or am missing something in my concept, do you think there is some way to get around this with global variables and other issues with the normal aspx files? I want my webapi not to consist of many different projects, seems to make everything very complicated if you are not a global IT firm, thanxs
Walter Grimm
Why don’t you use it as a webservice with database and parsed xml/json collections ?
Or am I not understanding the question?
please make the additional vb.net tutorials for put post delete, etc
Hi,
I'll work on that.
Thanks for watching.
Jon
More VB please...
Hii.. I tried to run the exact same as you did using Visual Studio 2019 and I keep getting "http error 403.14 - forbidden" without showing the web screen saying that it is starting..Any idea on how to fix this?
Do you do your requests on localhost ?
If not try to see if it’s not a firewall problem.
And also you should re-install Visual Studio because it can be a corrupted framework/files-dependencies missing issue.
Jon é possível mais exemplo com o Visual Basic?
Oi Ricardo,
Aqui está um exemplo no Visual Basic: ua-cam.com/video/sr4oO1X41bY/v-deo.html
Jon
Hai Mr Jon, when part 2 of this tutorial will be available? Thanks
Hi Edward,
I have a whole playlist of videos in C#. I may do more Visual Basic in the future but for now that is the only one for VB. It should be easy to watch the C# ones and do the examples in Visual Basic.
Thanks for watching!
Jon
Thanks Mr Jon. Just one more question if you don't mind, how could i implement this in VB. (HttpRespondMessage) inside rest api controller . I try to google on any site, but still no like. Here example in c#
public HttpResponseMessage Get()
{
EmployeeData entites = new EmployeeData();
return Request.CreateResponse(HttpStatusCode.OK, entites.GetAllEmployee());
}
Thanks
edward lie
Hi Edward, you probably had a response since then but here is a translation:
Public Function Get() as HttpWebResponseMessage
Dim entities() as New employeeData()
Return Request.CreateResponse(HttpStatutCode.OK, entities.GetAllEmployees())
End Function
It’s also very important to use the Try Catch when performing an action of which it can have a failure.
And last but not least, if you struggle with C# and can’t convert from the head there are plenty of online converters free to use especially made for that purpose (Telerik Converter is the best from what I heard).
Have a nice day.
is it also 'type agnostic' ?
Hi Josh,
What do you mean by type agnostic?
Thanks!
Jon
Jon, can you share the Second Part, please.!!!! I'm vb.net developer to and I finally get me clear about webservices.
Hi Joaquin,
What additional things would you like to know or be able to do?
Thanks for watching!
Jon
@@telejonjensen Hello Jon. Well I like Vb.net than C#. So I cant find samples on How to develop a WEBApi returning a JSON using Vb.net. All the samples are with C#. This is what I'm looking.
Thanks for your time.
Hi Joaquin,
WebAPI will automatically return JSON for you if you add a header to your request that is this:
Key: Accept
Value: application/json
Accept:application/json
Postman by default includes this header:
Accept:*/*
Which means anything the server sends is accepted.
I hope that helps.
Jon
@@telejonjensen i hope you share an example.. thanks
Hy, so where is the continuation of this tutorial ?
Hi,
Here is the playlist: ua-cam.com/play/PLDQIAo9A3-DaBMQ0ZZFlcej2we3uC5VT8.html
Thanks for watching!
Jon
@@telejonjensen ok I did see your playlist, but you start with VB NET, so I wonder if you will make a continuation in VB, it will be a great help not only for me, but for many VB programmers.
How do you call a REST API from VB
Hi David,
I haven't done a video on a VB client but it will be very similar to C# and there are videos on that here: ua-cam.com/video/i1HSG7ttDtM/v-deo.html and here: ua-cam.com/video/8JQhXCEdOt8/v-deo.html.
Thanks for watching!
Jon
straight forward using free software - thanks a lot; audio quality is bad - perhaps a better microphone for the next videos - I can recommend Neumann KM184 - good for language and instrument recordings - about 150 EUR used on eBay
Hi Mario,
Thanks for watching. I've switched to a Blue Yeti microphone for the ASP.Net Core 2.0 videos (and any others I do going forward). Thanks for the suggestion!
Jon
how to catch the error when we passed null
Try
‘Code
Catch ex as Exception
Select ex.Error
‘Case your 1st possible error
‘Case your 2nd possible error
‘Etc
End select
End Try
Very Helpful, I suggest to place the links of the other videos that shows C# in the description so it easier found also if you have Android App example to connect to this api will be very helpful. Thanks
update: found this ua-cam.com/video/cSsNI01Py3Q/v-deo.html would be helpful to be included in the description box