Difference between revisions of "Talk:Specification"

From RestAuth
Jump to navigation Jump to search
Line 13: Line 13:
  
 
'''Note:''' We could even think of adding an '''autocreate''' parameter to let the client decide if groups should be created (I wouldn't allow this for users, though?)
 
'''Note:''' We could even think of adding an '''autocreate''' parameter to let the client decide if groups should be created (I wouldn't allow this for users, though?)
 +
 +
=== Possible solutions ===
 +
* Add an "autocreate" parameter to some or all requests. (if only some: What to do with the others?)
 +
* Automatically create groups, but never automatically create users.
 +
** Setting multiple sub-groups would also create groups - like properties. But setting a single sub-group (a different request) that doesn't exist would be an error
 +
* Auto-create everything.
 +
* Auto-create nothing.

Revision as of 19:04, 29 January 2015

Handling of related entities in 0.7

The current status for related entities:

I am open to suggestions. I think this should be handled in a consistent way. The current status is definitely something that grew historically, we can change it.

Note: We could even think of adding an autocreate parameter to let the client decide if groups should be created (I wouldn't allow this for users, though?)

Possible solutions

  • Add an "autocreate" parameter to some or all requests. (if only some: What to do with the others?)
  • Automatically create groups, but never automatically create users.
    • Setting multiple sub-groups would also create groups - like properties. But setting a single sub-group (a different request) that doesn't exist would be an error
  • Auto-create everything.
  • Auto-create nothing.