In our application we have a user who can be assigned multiple territories. What is the best way to expose the REST API?
Should it be as :
[POST] www.xyz.com/Territory/User
OR
[POST] www.xyz.com/User/Territory
BODY :
{ "UserId" : 6, "TerritoryId" : [1,2,5] }
I am designing this application using .net WEB API 2, so should the above action be placed in User controller or Territory controller or shall I create UserTerritory as a new controller? Any help is highly appreciated.