Designing an API as RESTful as possible, I wonder if it is ok to divide a resource with specific sub-URIs.
Let's have the following URIs:
GET /users: list usersGET /users/42: get detailed information about user withid=42, e.g.:{ id: 42, first_name: "Done", last_name: "Joe", is_active: false }
I am about to consider the "is active" status as its own resource:
GET /users/42/is_active: get activity status about user withid=42{ is_active: false }PUT /users/42/is_active: set activity status about user withid=42using as body:{ is_active: false }
Any pro's or con's for doing so?