| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
62 Articles match "Restful"
See all articles with
"Restful"
| The Latest from The Problem Solver | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient But with a REST service there is both a client and a service component. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. The GetBooks() function gets all books from the REST service. Not a whole lot but the REST convention is to return both an HTTP 201 Created status as well as the location of the new resource in an HTTP header. 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. 7: _httpClient = httpClient; 8: BaseUrl = new Uri( "[link] ); 9: }. The Problem Solver - Monday, May 20, 2013 Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. ASP.NET REST WebAPI For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 8: 9: }. 11: {. 17: {. The Problem Solver - Sunday, May 12, 2013 The #AngularJS $scope is not the MVC Model BTW the rest of this video is highly recommended as well. 'Index: Getting started with AngularJS Creating an AngularJS Controller The #AngularJS $scope is not the MVC Model In the previous post I showed how to create and use an MVC Controller in AngularJS to manage the logic of an application. In this post I showed how to use the $scope variable that is passed into the Controller to share data between the Controller and the View. This may lead you to believe that the $scope is the MVC Model used but you would be completely wrong. Now that sounds awfully like a model but it isn’t. 13: *. The Problem Solver - Monday, April 15, 2013 | | The Best from The Problem Solver | MORE | | Using HTTP status codes in a REST service When we are building REST service we embrace HTTP and as a result we also embrace all the HTTP status codes, not just 200 and 500. www.dotnetevents.nl.NET WCF REST dotnetmagWhen we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. But there are far more status codes we can use. For example a database connection failed. else. {. The Problem Solver - Wednesday, July 20, 2011 Building rich HTML 5 clients using REST services You can download the slide from my session on Building rich HTML 5 clients using REST services here and the sample application using the WCF Web API here. www.dotnetevents.nl.NET WCF webcast ASP.NET REST dotnetmag HTML5The slides are also available on SlideShare. Enjoy! www.TheProblemSolver.nl The Problem Solver - Wednesday, October 26, 2011 Building rich HTML 5 clients using REST services recording For those who missed the online event about building JavaScript and HTML 5 client for a REST service build using the new WCF Web API the recordings are up. www.dotnetevents.nl.NET WCF webcast ASP.NET REST HTML5You can download the hi res recording here or download one of the other formats from the main page here. And remember there a bunch of other useful recording from other DevelopMentor instructors on the same page. Enjoy! www.TheProblemSolver.nl The Problem Solver - Thursday, November 3, 2011 | - Using the WCF Web API in an ASP.NET MVC application
Now that works but it is far more likely that you will want to be using IIS and host the REST service as part of a web application. So in this blog post I am going to show how to do the normal thing I Created an ASP.NET MVC 3 app to host the REST service. non browser client application can consume this REST service quite easily using a standard HTTP API available. www.dotnetevents.nl.NET WCF ASP.NET VS2010 Futures NuGet RESTjust prefer the MVC approach, you might not. Just like in this post we can add a reference to the WCF Web API to our project. repo = repo; }. The Problem Solver - Monday, June 13, 2011 - Using SignalR for real time data updates
To be fair the JavaScript would be using jQuery in most cases and would be quite trivial to write against some REST service. Replacing a REST service with SignalR Suppose the client doesn’t load the data using a REST service but uses SignalR instead. REST HTML5 ASP.NET MVC SignalRIn a previous post I showed how easy it is to create a simple chat application using SignalR. And chatting on the internet might be popular but as it turns out there are rather a lot of applications that need to do more than just chat. And that will remain so until reloads the data. Enjoy! The Problem Solver - Wednesday, July 25, 2012 - On building Restful services
lot of people will be familiar with writing SOAP style services but not everyone is quite as familiar with the REST approach so I guess that takes a bit of explanation. This subject is a bit long for a single blog post so I am going to do a number explaining what REST is, the difference with SOAP and how to build these Restful services using the WCF Web API. Of course the WCF Web API is still in a preview state so some of the technical things are subject to change over time but the general principal of building Restful services isn’t going to change a lot. Enjoy! The Problem Solver - Tuesday, June 21, 2011 - Query composition with the ASP.NET Web API
Having the ASP.NET Web API as a REST service returning data is kind of nice but to be efficient on the wire we don’t want to return more data that required only to discard it in the client. NET REST HTML5 WebAPI ASP.NET MVCAs we have seen in a previous post just returning a collection data was real easy. As it turns out changing the service so the client can filter data is almost just as easy. In the previous example we returned an IEnumerable. All we need to do is change this to return an IQueryable and most of the work is done. 1: public class ProductsController : ApiController. The Problem Solver - Wednesday, March 21, 2012 - Unit testing a ASP.NET WebAPI controller
'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. ASP.NET REST WebAPI For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 8: 9: }. 11: {. 17: {. The Problem Solver - Sunday, May 12, 2013 - Excellent rest met de WebAPI #TechDaysNL
De PowerPoint slides Excellent rest met de web api from Maurice Beijer En hier staat de bron code. NET REST WebAPI TechDaysEnjoy! The Problem Solver - Monday, March 11, 2013 - Using HTTP methods in a REST service
When REST came along and it embraced the HTTP standard is also embraced the HTTP verbs. And it turns out that makes perfect sense because REST is about resources. www.dotnetevents.nl.NET WCF REST dotnetmagIn a normal language like English we use verbs all the time to describe what we are doing. So I guess the designers of the HTTP specs must have thought why not do the same with the HTTP protocol. And that makes perfect sense. In the HTTP spec these are called methods but commonly these are also names verbs. Sounds familiar? What about SOAP messages? Safe actions. Enjoy! The Problem Solver - Thursday, August 25, 2011 %>
193 Articles match "Restful"
See all articles with
"Restful"
| The Latest from DevelopMentor | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient But with a REST service there is both a client and a service component. In this case the client application contains the following class to load books from the REST WebAPI controller: 1: public class BooksClient. The GetBooks() function gets all books from the REST service. Not a whole lot but the REST convention is to return both an HTTP 201 Created status as well as the location of the new resource in an HTTP header. 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. 7: _httpClient = httpClient; 8: BaseUrl = new Uri( "[link] ); 9: }. The Problem Solver - Monday, May 20, 2013 Unit testing a ASP.NET WebAPI controller 'One of he goals of the ASP.NET WebAPI is to make REST style API controllers more testable than more traditional WCF services where in the past. ASP.NET REST WebAPI For the most part that is true but there are cases where an ApiController depends on the actual incoming request and its data and things can become a bit more difficult. Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. 8: 9: }. 11: {. 17: {. The Problem Solver - Sunday, May 12, 2013 Reblogged: What should I learn to get started in.NET and web development? Because you can preview the first lesson of each course, you have about 7 hours free and the rest are all included in an affordable $29 subscription. '[ Note : I am reblogging this post which originally was posted to the LearningLine blog. Hope you all find it useful here as well]. recently had a conversation with someone who is looking to make a fresh start and become a developer (coming from other IT positions). The question they had was: What should I learn to get started in.NET and web development? How do I do that?” That’s another blog post. :). jQuery basics. Michael C. Kennedy's Weblog - Monday, May 6, 2013 | -
| The Best from DevelopMentor | MORE | - Secure WCF REST Services with a Custom UserNamePasswordValidator
< serviceBehaviors > < behavior > < serviceCredentials > < userNameAuthentication userNamePasswordValidationMode = " Custom " customUserNamePasswordValidatorType = " Security.PasswordValidator, Security " /> </ serviceCredentials > </ behavior > </ serviceBehaviors > This is all fine and dandy, but it assumes that clients will only be talking Soap – what about REST-ful clients who don’t know a thing about Soap? Technical REST Security WCFDownload the code for this blog post here. netsh http add sslcert ipport=0.0.0.0:2345 DevelopMentor Courses - Monday, May 28, 2012 - Using HTTP status codes in a REST service
When we are building REST service we embrace HTTP and as a result we also embrace all the HTTP status codes, not just 200 and 500. www.dotnetevents.nl.NET WCF REST dotnetmagWhen we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. But there are far more status codes we can use. For example a database connection failed. else. {. The Problem Solver - Wednesday, July 20, 2011 - Building rich HTML 5 clients using REST services
You can download the slide from my session on Building rich HTML 5 clients using REST services here and the sample application using the WCF Web API here. www.dotnetevents.nl.NET WCF webcast ASP.NET REST dotnetmag HTML5The slides are also available on SlideShare. Enjoy! www.TheProblemSolver.nl The Problem Solver - Wednesday, October 26, 2011 - Building rich HTML 5 clients using REST services recording
For those who missed the online event about building JavaScript and HTML 5 client for a REST service build using the new WCF Web API the recordings are up. www.dotnetevents.nl.NET WCF webcast ASP.NET REST HTML5You can download the hi res recording here or download one of the other formats from the main page here. And remember there a bunch of other useful recording from other DevelopMentor instructors on the same page. Enjoy! www.TheProblemSolver.nl The Problem Solver - Thursday, November 3, 2011 - On building Restful services
lot of people will be familiar with writing SOAP style services but not everyone is quite as familiar with the REST approach so I guess that takes a bit of explanation. This subject is a bit long for a single blog post so I am going to do a number explaining what REST is, the difference with SOAP and how to build these Restful services using the WCF Web API. Of course the WCF Web API is still in a preview state so some of the technical things are subject to change over time but the general principal of building Restful services isn’t going to change a lot. Enjoy! The Problem Solver - Tuesday, June 21, 2011 %>
| | |