REST Best Practices: Should you return an entity on POST and PUT calls?

It might be beneficial to study the API’s of other folks to see how they do it. Most of the useful public API’s are published somewhere on the web. For example, the Overmind project publishes their REST API here. In general, their approach is to return a JSON Dictionary containing the new or modified entity … Read more

“Smart” way of parsing and using website data? [closed]

I’ve done some of this recently, and here are my experiences. There are three basic approaches: Regular Expressions. Most flexible, easiest to use with loosely-structured info and changing formats. Harder to do structural/tag analysis, but easier to do text matching. Built in validation of data formatting. Harder to maintain than others, because you have to … Read more

Does IMDb provide an api or a data dump to get all title IDs?

You can use IMDB API located at www.omdbapi.com You can search for movie names like this – http://www.omdbapi.com/?t=hangover%202 { “Title”:”The Hangover Part II”, “Year”:”2011″, “Rated”:”R”, “Released”:”26 May 2011″, “Genre”:”Comedy”, “Director”:”Todd Phillips”, “Writer”:”Craig Mazin, Scot Armstrong”, “Actors”:”Bradley Cooper, Zach Galifianakis, Ed Helms, Justin Bartha”, “Plot”:”Right after the bachelor party in Las Vegas, Phil, Stu, Alan, and … Read more

SOAP headers versus HTTP headers

The SOAP headers contain application specific information related to the SOAP message. They typically contain routing information, authentication information, transaction semantics etc. These are specific to the SOAP message and are independent of the transport that SOAP uses (in the scope of this post: HTTP). HTTP headers define the operating parameters of the HTTP transaction, … Read more

Xamarin: Connect to locally hosted web service

If you’re using an Android Emulator then asking for the localhost web service won’t work, because you’re looking at the localhost of the emulator. How can you fix this? Well, Android Emulator has a magic address http://10.0.2.2:your_port that points to 127.0.0.1:your_port on your host machine.Take a look here. Because it points to an IP and … Read more

What are considered non-breaking or backwards-compatible changes to a WSDL contract?

I have spent some time on this particular subject, and found some guidelines in a book by Thomas Erl which I refer to at the bottom. Here is what they have to say; Compatible Changes adding a new WSDL operation definition and associated message definitions adding a new WSDL port type definition and associated operation … Read more

Is 5-digit PIN better than most passwords?

No, you’re mistaken. Brute force attacks are one thing, but the real danger is Rainbow Tables that, from a hash value, gives you the plaintext password. First you never ever store anything as plaintext. If someone breach your security (or even if an employee has malicious intent) you don’t want to expose users’ password. So … Read more