Restful : multiple cases for a same ressource (same api end point ?)
问题 For example, i have two scenarios for creating a user : Created by administrator, without password. The user will have to choose it on activation page. Created by the user himself, with password. The activation page won't show password inputs because the password already exists. The thing is it's the same resource, a user. But depending on who (where) the api is called, the expected behaviour is different. In one case the DTO should contains the password posted by the user, in the other case