~larry-e-works/uci-engine/write-exitcode-to-file

« back to all changes in this revision

Viewing changes to docs/components/ticket-system.rst

  • Committer: Joe Talbott
  • Date: 2014-01-27 14:54:08 UTC
  • mfrom: (126.3.8 webui)
  • mto: This revision was merged to the branch mainline in revision 161.
  • Revision ID: joe.talbott@canonical.com-20140127145408-zpubebx02y6oumxq
merge doanac's cleanup branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
 
205
205
 curl --dump-header - http://localhost:8000/api/v1/ticketstatus/
206
206
 
207
 
*New*
 
207
*Queued*
208
208
 
209
209
::
210
210
 
256
256
 
257
257
 curl --dump-header - -H "Content-Type: application/json" -X PATCH --data '{"current_workflow_step": "100", "status": "000"}' http://localhost:8000/api/v1/updateticketstatus/1/
258
258
 
 
259
Mark ticket complete
 
260
~~~~~~~~~~~~~~~~~~~~
 
261
 
 
262
To be used by the lander. The act of marking a ticket complete will modify the master list of binary packages which are tested by adding to the list any of the 'added_binaries' from the ticket and removing any of the 'removed_binaries' from the ticket.
 
263
 
 
264
::
 
265
 
 
266
 curl --dump-header - -H "Content-Type: application/json" -X PATCH --data '{"current_workflow_step": "1000", "status": "1000"}' http://localhost:8000/api/v1/updateticketstatus/1/
 
267
 
259
268
Update subticket status
260
269
~~~~~~~~~~~~~~~~~~~~~~~
261
270
 
277
286
Create artifact
278
287
~~~~~~~~~~~~~~~
279
288
 
 
289
 
 
290
*Ticket*
 
291
 
 
292
Valid types are: "RESULTS", "LOGS", "IMAGE"
 
293
 
 
294
::
 
295
 
 
296
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "my_artifact", "ticket": "/api/v1/ticket/X/", "reference": "http://path.to/artifact/", "type": "IMAGE"}' http://localhost:8000/api/v1/ticketartifact/
 
297
 
 
298
 
 
299
*Subticket*
 
300
 
280
301
Valid types are: "SPU", "RESULTS", "LOGS"
281
302
 
282
303
::
283
304
 
284
 
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "my_artifact", "subticket": "/api/v1/subticket/X/", "reference": "http://path.to/artifact/", "type": "SPU"}' http://localhost:8000/api/v1/artifact/
 
305
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "my_artifact", "subticket": "/api/v1/subticket/X/", "reference": "http://path.to/artifact/", "type": "SPU"}' http://localhost:8000/api/v1/subticketartifact/
285
306
 
286
307
Create subticket
287
308
~~~~~~~~~~~~~~~~
442
463
 
443
464
::
444
465
 
445
 
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "Chris Johnston", "email": "chris.johnston@canonical.com", "is_team": "False"}' http://localhost:8000/api/v1/person/
 
466
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "Chris Johnston", "email": "user@example.com", "is_team": "False"}' http://localhost:8000/api/v1/person/
446
467
 
447
468
 
448
469
*team*
449
470
 
450
471
::
451
472
 
452
 
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "Canonical CI Engineering", "email": "canonical-ci-engineering@lists.launchpad.net", "is_team": "True"}' http://localhost:8000/api/v1/person/
 
473
 curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"name": "Canonical CI Engineering", "email": "team@lists.example", "is_team": "True"}' http://localhost:8000/api/v1/person/
453
474
 
454
475
 
455
476
get_person
465
486
 
466
487
::
467
488
 
468
 
 curl --dump-header - http://localhost:8000/api/v1/person/?name__exact=Chris%20Johnston
469
 
 curl --dump-header - http://localhost:8000/api/v1/person/?name__iexact=chris%20johnston
470
 
 curl --dump-header - http://localhost:8000/api/v1/person/?name__startswith=Chris
471
 
 curl --dump-header - http://localhost:8000/api/v1/person/?name__istartswith=chris
 
489
 curl --dump-header - http://localhost:8000/api/v1/person/?name__exact=My%20Name
 
490
 curl --dump-header - http://localhost:8000/api/v1/person/?name__iexact=my%20name
 
491
 curl --dump-header - http://localhost:8000/api/v1/person/?name__startswith=My
 
492
 curl --dump-header - http://localhost:8000/api/v1/person/?name__istartswith=my
472
493
 
473
494
*search by email*
474
495
 
475
496
::
476
497
 
477
 
 curl --dump-header - http://localhost:8000/api/v1/person/?email__exact=chris.johnston@canonical.com
478
 
 curl --dump-header - http://localhost:8000/api/v1/person/?email__iexact=Chris.Johnston@canonical.com
479
 
 curl --dump-header - http://localhost:8000/api/v1/person/?email__startswith=chris
480
 
 curl --dump-header - http://localhost:8000/api/v1/person/?email__istartswith=Chris
 
498
 curl --dump-header - http://localhost:8000/api/v1/person/?email__exact=user@example.com
 
499
 curl --dump-header - http://localhost:8000/api/v1/person/?email__iexact=User@example.com
 
500
 curl --dump-header - http://localhost:8000/api/v1/person/?email__startswith=user
 
501
 curl --dump-header - http://localhost:8000/api/v1/person/?email__istartswith=User
481
502
 
482
503
*show/don't show teams*
483
504