annotate demo.py @ 5660:d8d2b7724292

First attempt at REST-API documentation Also fix operator of patch to be '@op', not 'op'. Example for retire/restore using both, DELETE and PATCH with @op=action.
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 22 Mar 2019 11:23:02 +0100
parents 110ac45875ab
children 7f0bc46aee67
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4845
110ac45875ab executable .py scripts need "#!/usr/bin/env python"
Thomas Arendsen Hein <thomas@intevation.de>
parents: 4765
diff changeset
1 #!/usr/bin/env python
4765
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
2 import sys
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
3 import roundup
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
4
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
5 from roundup.demo import main
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
6
c6694cff29bc demo.py: Get rid of Windows linefeeds
anatoly techtonik <techtonik@gmail.com>
parents: 4763
diff changeset
7 sys.exit(main())

Roundup Issue Tracker: http://roundup-tracker.org/