What strategies would you suggest for creating a context-sensitive RESTful API?
Let me clarify.
In the project I'm working on, we show the Team resource. Users can create their own teams, which results in a POST /teams API request. The request is checked using a set of rules designed for user-created commands.
We also have an administration interface that is used by some users to create the same type of Team resource, however this is regulated by a slightly different set of verification rules.
Administrators can use either our public or administrative interface, and therefore, verification should be performed depending on their context, and not on user capabilities.
To rephrase the question above for this particular situation: how do we separate these two contexts with RESTful? Are we creating two different resources, even if the "result" is of the same type, and if so, what naming conventions would you suggest?
source share