문제

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 ~와 함께 속성
제휴하지 않습니다 softwareengineering.stackexchange
scroll top