i have to call this REST service written in scala-akka project from java-spring.
my scala REST service is like
val route =
post {
path("notification" / "signUp"){
headerValueByName("App_Key") { app_key => {
handleWith {
requestParameters: RequestParameters =>
//application specific implementation
}
}
}
}
which contains App_Key and Content-Type in header and request parameters in json format.
request parameters are like:
case class RequestParameters (
var name: String,
var email: String,
var password: String,
var hashKey: String
)
so i have to call this REST service from java spring. I an struggling while calling http://ipadress:port/notification/signUp
from java .