50
51
created_on: 2005-08-01T07:49:23
51
52
display_name: Anne Person
54
is_server_owner: False
53
55
self_link: http://localhost:9001/3.0/users/1
56
58
created_on: 2005-08-01T07:49:23
60
is_server_owner: False
58
61
self_link: http://localhost:9001/3.0/users/2
248
259
>>> dump_json('http://localhost:9001/3.0/users/4', {
260
... 'cleartext_password': 'the garden',
249
261
... 'display_name': 'David Personhood',
250
... 'cleartext_password': 'the garden',
262
... 'is_server_owner': False,
251
263
... }, method='PUT')
252
264
content-length: 0
425
Users can be designated as server owners. Elly is not currently a server
428
>>> dump_json('http://localhost:9001/3.0/users/5')
429
created_on: 2005-08-01T07:49:23
430
display_name: Elly Person
432
is_server_owner: False
433
password: {plaintext}supersekrit
434
self_link: http://localhost:9001/3.0/users/5
437
Let's make her a server owner.
440
>>> dump_json('http://localhost:9001/3.0/users/5', {
441
... 'is_server_owner': True,
442
... }, method='PATCH')
448
>>> dump_json('http://localhost:9001/3.0/users/5')
449
created_on: 2005-08-01T07:49:23
450
display_name: Elly Person
452
is_server_owner: True
453
password: {plaintext}supersekrit
454
self_link: http://localhost:9001/3.0/users/5
457
Elly later retires as server owner.
460
>>> dump_json('http://localhost:9001/3.0/users/5', {
461
... 'is_server_owner': False,
462
... }, method='PATCH')
468
>>> dump_json('http://localhost:9001/3.0/users/5')
469
created_on: 2005-08-01T07:49:23
470
display_name: Elly Person
472
is_server_owner: False
473
password: {plaintext}...
474
self_link: http://localhost:9001/3.0/users/5
477
Gwen, a new users, takes over as a server owner.
480
>>> dump_json('http://localhost:9001/3.0/users', {
481
... 'display_name': 'Gwen Person',
482
... 'email': 'gwen@example.com',
483
... 'is_server_owner': True,
487
location: http://localhost:9001/3.0/users/7
491
>>> dump_json('http://localhost:9001/3.0/users/7')
492
created_on: 2005-08-01T07:49:23
493
display_name: Gwen Person
495
is_server_owner: True
496
password: {plaintext}...
497
self_link: http://localhost:9001/3.0/users/7