For one time testing purpose, postman is quite a good tool to test http API.
- choose the action: Post and put the http url into the text box right of action drop down list
- 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:
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.
If use intellij, run>edit configurations> add application
choose main class as com.madhukaraphatak.akkahttp.AkkaHttpHelloWorld
vm option: -Xms64m -Xmx256m