Skip to content

Instantly share code, notes, and snippets.

@JogoShugh
Last active December 12, 2015 00:29
Show Gist options
  • Save JogoShugh/4684567 to your computer and use it in GitHub Desktop.
Save JogoShugh/4684567 to your computer and use it in GitHub Desktop.
Understand How and Why REST APIs Work
{
"Name": "Tutorial Story",
"Description": "Great description",
"Estimate": "5"
}
{
"Name": "Tutorial Story",
"Description": "This is a much, much better description for something more difficult than a 5",
"Estimate": "7"
}
var client = new VersionOneClient();
client.story.getById(1154).done(function(story) { } );
var client = new VersionOneClient();
var storyData = { Name: 'My New Story', Description: 'As a developer, I do not want to learn proprietary API clients', Estimate: 1000 };
client.story.createNew(storyData);
var client = new VersionOneClient();
client.workInProgressLimit.getAll().done(function(story) { } );
{
"AssetType": "Story",
"Description": "Great description",
"Name": "Tutorial Story",
"_links": {
"self": {
"href": "/platformtest/rest-1.v1/Data/Story/1154",
"id": "Story:1154"
},
"Scope": [
{
"href": "/platformtest/rest-1.v1/Data/Scope/0",
"idref": "Scope:0"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment