~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/stories/webservice/xx-branch.txt

merge from db-devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
    >>> print_branches(webservice, '/widgets', ('Experimental'))
245
245
    ~eric/fooix/feature-branch - Experimental
246
246
 
 
247
Differences between versions
 
248
============================
 
249
 
 
250
In version 'beta', a branch can be made private or public by invoking
 
251
the named operation 'setPrivate'.
 
252
 
 
253
    >>> branch = webservice.get(branch_url).jsonBody()
 
254
    >>> print branch['private']
 
255
    False
 
256
 
 
257
    >>> response = webservice.named_post(
 
258
    ...     branch_url, 'setPrivate', api_version='beta', private=True)
 
259
    >>> branch = webservice.get(branch_url).jsonBody()
 
260
    >>> print branch['private']
 
261
    True
 
262
 
 
263
In subsequent versions, 'setPrivate' is gone; you have to set the
 
264
'private' field directly.
 
265
 
 
266
    >>> print webservice.named_post(
 
267
    ...     branch_url, 'setPrivate', api_version='devel', private=True)
 
268
    HTTP/1.1 400 Bad Request
 
269
    ...
 
270
    No such operation: setPrivate
 
271
 
247
272
Removing branches
248
273
=================
249
274