| |
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.
|
52 Articles match "Course","Resource"
| Related DevelopMentor Courses | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient 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. Of course we still need tests for updating existing resources as well as deleting them but with these examples those should be easy enough :-). 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. But with a REST service there is both a client and a service component. Assuming for a moment the client part is also written in C# we should test that as well. 10: 11: public Uri BaseUrl { get; private set; }. The Problem Solver - Monday, May 20, 2013 Guerrilla.NET (US) Training In addition to the latest core.NET topics, we'll be covering cutting-edge content that you simply cannot get at other courses including multi-touch programming, Mono.NET, and NoSQL / MongoDB. class] Night out for drinks and conversations Day 5 Managed Extensibility Framework WCF Data Services Power Debugging with WinDBG This course covers is a deep exploration of.NET 4.0 and build on the PFx Task library (covered elsewhere in the course), the dynamic capabilities of C# 4.0, C# : Leverage new features of C# including asynchronous methods from C# 5.0, assuming Silverlight 5.0 DevelopMentor Courses - Tuesday, March 1, 2011 Designing and Implementing Effective C++ Classes Training Understanding of the resource acquisition is initialization (RAII) technique for managing resources. There are no hands-on exercises, but participants are welcome to use their computers to experiment with the course material as it is presented. Participants will gain: Mastery of the crucial member functions applicable to every class. Insights into the differences among member functions, non-member functions, virtual functions, and non-virtual functions. Knowledge of the rules of thumb applied by expert programmers as they design and implement software systems in C++. DevelopMentor Courses - Tuesday, March 1, 2011 |
39 Articles match "Course","Resource"
| The Latest from DevelopMentor | MORE | | Unit testing code depending on the ASP.NET #WebApi HttpClient 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. Of course we still need tests for updating existing resources as well as deleting them but with these examples those should be easy enough :-). 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. But with a REST service there is both a client and a service component. Assuming for a moment the client part is also written in C# we should test that as well. 10: 11: public Uri BaseUrl { get; private set; }. The Problem Solver - Monday, May 20, 2013 ASP.NET WebAPI Security 5: JavaScript Clients The typical course of events is that the user first logs on to the web application – which will result in an authentication cookie of some sort. Obtaining a token from IdentityServer’s resource owner credential OAuth2 endpoint could look like this: thinktectureIdentityModel.BrokeredAuthentication = function (stsEndpointAddress, scope) {. All samples I showed in my last post were in C#. Christian contributed another client sample in some strange language that is supposed to work well in browsers ;). JavaScript client scenarios. come to mind. ajax({. if (error.status == 401) {. www.leastprivilege.com - Thursday, March 15, 2012 Client side support with the ASP.NET Web API Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. Of course this should really have been a 201 Created with the URL pointing to the location of the new resource but we still need to look at how to control the response message from the ApiController. With REST there is not a lot required on the client as far as sending requests goes. In order to make life even easier the ASP.NET Web API adds some client support in the form of the HttpClient class. 11: }. 13: {. 18: {. The Problem Solver - Tuesday, March 13, 2012 | -
| The Best from DevelopMentor | MORE | - Unit testing code depending on the ASP.NET #WebApi HttpClient
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. Of course we still need tests for updating existing resources as well as deleting them but with these examples those should be easy enough :-). 'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. But with a REST service there is both a client and a service component. Assuming for a moment the client part is also written in C# we should test that as well. 10: 11: public Uri BaseUrl { get; private set; }. The Problem Solver - Monday, May 20, 2013 - Using HTTP methods in a REST service
And it turns out that makes perfect sense because REST is about resources. And with resources we can do things like create retrieve, update or delete them. However updating data isn’t because that changes the state of the resource. Some actions that change the state of a resource can also be idempotent. For example deleting some data a second time should be fine, the resource was supposed to be removed after the request and it is. Updating the status of a resource is typically done with an HTTP PUT method. And that makes perfect sense. Sounds familiar? The Problem Solver - Thursday, August 25, 2011 - ASP.NET WebAPI Security 5: JavaScript Clients
The typical course of events is that the user first logs on to the web application – which will result in an authentication cookie of some sort. Obtaining a token from IdentityServer’s resource owner credential OAuth2 endpoint could look like this: thinktectureIdentityModel.BrokeredAuthentication = function (stsEndpointAddress, scope) {. All samples I showed in my last post were in C#. Christian contributed another client sample in some strange language that is supposed to work well in browsers ;). JavaScript client scenarios. come to mind. ajax({. if (error.status == 401) {. www.leastprivilege.com - Thursday, March 15, 2012 - Updating data with the ASP.NET Web API
Of course in reality a Post action would be somewhat more complicated. Another issue is that, if everything goes well, we are just returning a 200 Ok status where we should be returning a 201 Created status with the location of the newly created resource. In the previous blog post I demonstrated how to get started with the ASP.NET Web API and retrieve some products data from the Northwind database. Something that was really easy to do But quite often we want to update data just as much as we want to retrieve it. quick recap of REST and HTTP methods used. 10: 11: // GET /api/ /5. The Problem Solver - Monday, March 12, 2012 - Client side support with the ASP.NET Web API
Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. Of course this should really have been a 201 Created with the URL pointing to the location of the new resource but we still need to look at how to control the response message from the ApiController. With REST there is not a lot required on the client as far as sending requests goes. In order to make life even easier the ASP.NET Web API adds some client support in the form of the HttpClient class. 11: }. 13: {. 18: {. The Problem Solver - Tuesday, March 13, 2012 - Getting started with the ASP.NET Web API
3: routes.IgnoreRoute( "{resource}.axd/{*pathInfo}" Of course you are free to change the path but for now I am going to leave it as is as the default convention of putting Web API request in an API URL makes sense to me. Some time ago I did a number of blog posts about the beta versions of the WCF Web API. As it turns out the WCF Web API team has moved into the ASP.NET team, a good thing as far as I am concerned, and as a result it is now called ASP.NET Web API. Now this is much more that just a name change. What is the ASP.NET Web API all about? 3: // GET /api/. 11: {. The Problem Solver - Friday, March 9, 2012 - Reverse-Tolstoy, or Tolstoy reconsidered
Resource foobar For “resources” read people. Resource (people) pools People aren’t allowed to stay with the same piece of code for very long. So you create your own resource crush. Rule of thumb #2 : if you find yourself sitting in a room with other (none coders or testers) discussing the work of coders and testers with none of them present then you have a problem Of course, that assume you have a room. it saves money on the bottom line but people waste far more value faffing around with making do with inadequate resources. Blame (credit?) Or retire? Allan Kelly's Blog - Friday, November 5, 2010 %>
| | |