- Posted On 10 June 2015
- In Programming
Postman - REST Client is one of the best Google Chrome app available on the chrome store. It's Free and many developers world wide use this app/extension to test the REST API they are developing.
It provided several features which are very useful while developing and testing REST API's.
You can test GET,PUT,POST and many other type of methods in POSTMAN but I found that many of the developers are facing issues while testing a method which requires input parameter as JSON, so I decided to share it here.
If you are not aware how to test API using POSTMAN, you can read the below docs.
Now to post JSON data,
- First type URL of the API
- Change method type to POST
- In paramter section click on "raw" tab and select format as "JSON" and add your json in the textarea provided
- Click on "Headers" (right corner in URL line) & add "Content-Type" as header and "application/json; charset=UTF-8" as value.
(Refer below image)
Now click on "send", you will find that your request now received the json parameters you provided.
Here adding "Content-Type" in header is important which tells the MIME type (Internet media type) of the HTTP request made.
Hope you have benefited from this simple post. Thanks.
How to call click or any event only once in jQuery
Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.
Typewriter - Automatic TypeScript Template generation from C# classes in Visual Studio
Typewriter, an extension for visual studio that generates TypeScript files from C# code files using TypeScript templates. Convert your C# model classes to TypeScript automatically.
Top 10 Visual Studio things which can boost developers coding speed
Visual Studio 2012 provides some coding features by which you can code faster if use them properly. This post will cover top 10 things among them to boost your development speed.
Speed up coding in Visual Studio with code snippets & samples at your fingertips
Know how you can speed up coding in Visual Studio with Bing Developer Assistant by having millions of code snippets and sample projects at fingertips.
Assembla - Free and private repository to manage your source code online with SVN subversion hosting
With Assembla you can share source code with others online. Free & Private source code repository with SVN Subversion, Git & Perforce Hosting.