I have defined methods as getJobByID and getJobByName in scala , now I am able to pass the Id parameter during the GET call as
val route = (path("dataSource"/LongNumber) & get){ id =>
complete(getJobById(id).map(_.asJson))
}
Now I want to get all jobs by name in similar fashion but didn't found any directive which can be used to get the Job name as the parameter and use it to find all job names. Do we have any solution or work around for this?