Last active
December 12, 2015 00:29
-
-
Save JogoShugh/4684567 to your computer and use it in GitHub Desktop.
Understand How and Why REST APIs Work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Tutorial Story", | |
"Description": "Great description", | |
"Estimate": "5" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Tutorial Story", | |
"Description": "This is a much, much better description for something more difficult than a 5", | |
"Estimate": "7" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new VersionOneClient(); | |
client.story.getById(1154).done(function(story) { } ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var client = new VersionOneClient(); | |
client.workInProgressLimit.getAll().done(function(story) { } ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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