REST API Authentication

For e.g. when a user has login.Now lets say the user want to create a forum topic, How will I know that the user is already logged in? Think about it – there must be some handshake that tells your “Create Forum” API that this current request is from an authenticated user. Since REST APIs … Read more

What’s the currently recommended way of performing partial updates with Web API?

There is no support in the current latest stable release of Web API (from August 2012). So if all you want to use is Web API RTM, you would have to implement the whole plumbing yourself. With that said, OData prerelease package supports partial updates very nicely through the new Delta<T> object. Currently the Microsoft.AspNet.WebApi.OData … Read more

REST vs JSON-RPC? [closed]

The fundamental problem with RPC is coupling. RPC clients become tightly coupled to service implementation in several ways and it becomes very hard to change service implementation without breaking clients: Clients are required to know procedure names; Procedure parameters order, types and count matters. It’s not that easy to change procedure signatures(number of arguments, order … Read more

How to use object filter with softlayer rest api?

Try to follow these recomendations: Getting first parameter through Service Datatype or How to define the first parameter as simple way? Getting first parameter through Service Datatype You are trying to get SoftLayer_Account::getBlockDeviceTemplateGroups As you see, you are using SoftLayer_Account service, you need to open its datatype from this service: You can go here: http://sldn.softlayer.com/reference/services/SoftLayer_Account … Read more

Why the slow WADL uptake? [closed]

I think the main reason why WADL doesn’t gain popularity is that it might bring back to life all those problem we had with SOAP and WSDL. To me, the interoperability aspect is the single most important aspect of web-services. By following the RESTful way of using pure HTTP standards you get interoperability “for free”. … Read more

Making a PowerShell POST request if a body param starts with ‘@’

You should be able to do the following: $params = @{“@type”=”login”; “username”=”[email protected]”; “password”=”yyy”; } Invoke-WebRequest -Uri http://foobar.com/endpoint -Method POST -Body $params This will send the post as the body. However – if you want to post this as a Json you might want to be explicit. To post this as a JSON you can specify … Read more