I am new to rest, I have an entity called availableJobPositions. I want to get most Interesting job by sending a person skills. which url is good in restful:

api/positions/skill/most-intersting?skills[]=php&skills[]=mysql

or

api/most-intersting-job?skills[]=php&skills[]=mysql
有帮助吗?

解决方案

REST say that you should use http verbs for interaction with the resources. So in this case the resource is interesting-jobs, that's why I recomend the second option, but you should use POST to pass the skill set.

许可以下: CC-BY-SA归因
scroll top