good tool postman app to http post get

For one time testing purpose, postman is quite a good tool to test http API.

  1. choose the action:   Post   and put the http url into the text box right of action drop down list
  2. Click Headers tab:  add new key: Authorization  as   if it’s basic auth.  value is :dXNlcjpwYXNzd29yZA==

You might need to encode the user and password from below link:

https://www.base64decode.org/

Input          user:password      Output   dXNlcjpwYXNzd29yZA==    for basic use   3.

3. Body: choose raw and if json structure , choose json. Paste your json data in the body.

 

Good beginner article to build REST API.

http://blog.madhukaraphatak.com/akka-http-helloworld/

If use intellij, run>edit configurations> add application

choose main class as com.madhukaraphatak.akkahttp.AkkaHttpHelloWorld

vm option: -Xms64m -Xmx256m

 

 

 

 

Advertisements
Posted in full stack

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: