Extending vCloud API with vCloud Extensibility Framework : Extension Example : 3.3 Full Ticketing Example
   
3.3 Full Ticketing Example
Now that you have seen that the message has been successfully handled, you can implement a full ticketing solution. A python script, ticketing.py, that is meant to simulate working with a ticketing system, is available at https://github.com/johnnycuse/vcd-api-examples/blob/master/ticketing/ticketing.py.
To explore the API, execute python ticketing.py:
The following is a list of newly exposed functionality with examples showing how to make the corresponding API extension call:
List tickets for an org – GET: /api/org/<ORG_UUID>/ticketing
http --session=vcloud-gcp-admin --pretty colors GET https://vcd.gcp.local/api/org/<ORG_UUID>/ticketing --verify no
Create a ticket – POST: /api/org/<ORG_UUID>/ticketing
http --session=vcloud-gcp-admin --pretty colors POST https://vcd.gcp.local/api/org/<ORG_UUID>/ticketing --verify no < ticket_create.xml
Get ticket details – GET: /api/org/<ORG_UUID>/ticketing/<Ticket_ID>
http --session=vcloud-gcp-admin --pretty colors GET https://vcd.gcp.local/api/org/<ORG_UUID>/ticketing/1000 --verify no
Update a ticket – PUT: /api/org/<ORG_UUID>/ticketing/<Ticket_ID>
http --session=vcloud-gcp-admin --pretty colors PUT https://vcd.gcp.local/api/org/<ORG_UUID>/ticketing/1000 --verify no < ticket_update.xml
Delete a ticket – DELETE: /api/org/<ORG_UUID>/ticketing/<Ticket_ID>
http --session=vcloud-gcp-admin --pretty colors DELETE https://vcd.gcp.local/api/org/<ORG_UUID>/ticketing/1000 --verify no
Using these example, you can explore how the new API endpoints are exposed and implemented.