Skip to content

Instantly share code, notes, and snippets.

View devdays's full-sized avatar

Bruce D Kyle devdays

View GitHub Profile
@devdays
devdays / 1-retrievePoll
Created January 12, 2015 20:00
Retrieve Poll
GET /poll/770115
@devdays
devdays / 1-deletePoll
Created January 12, 2015 19:58
Delete Poll
DELETE /poll/770115
GET /poll/770115
PUT /poll/770115/vote/1
<name>Bruce Kyle</name>
<choice>A</choice>
@devdays
devdays / 1-cloud-retrieveVotes
Last active August 29, 2015 14:13
Retrieve Votes
GET /poll/770115
@devdays
devdays / 1-cloud-voteResponse
Last active August 29, 2015 14:13
Add a vote to the poll
201 Created
Location: /poll/770115/vote/1
@devdays
devdays / 1-cloud-getPoll
Last active August 29, 2015 14:13
Reading a poll example of REST
GET /poll/770115
@devdays
devdays / 1-cloud-createAPoll
Last active August 29, 2015 14:13
Creating an item using REST
POST /poll
<options>A,B,C</options>
<?xml version="1.0" encoding="utf-8"?>
<CreateHostedService xmlns="http://schemas.microsoft.com/windowsazure">
<ServiceName>name-of-cloud-service</ServiceName>
<Label>base64-encoded-label-of-cloud-service</Label>
<Description>description-of-cloud-service</Description>
<Location>location-of-cloud-service</Location>
<AffinityGroup>name-of-affinity-group</AffinityGroup>
<ExtendedProperties>
<ExtendedProperty>
<Name>name-of-property</Name>
https://management.core.windows.net/7777777/services/hostedservices