summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-15 17:35:03 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-15 17:35:03 +0200
commitd237278b218fdd250f2c7c5fddefe4762d63aa16 (patch)
treef5a8c2fce8ff190ee75549e869be6794d37e9d11 /services
parentpresque (diff)
downloadapi-description-d237278b218fdd250f2c7c5fddefe4762d63aa16.tar.gz
add ihackernews
Diffstat (limited to 'services')
-rw-r--r--services/ihackernews.json88
1 files changed, 88 insertions, 0 deletions
diff --git a/services/ihackernews.json b/services/ihackernews.json
new file mode 100644
index 0000000..437316d
--- /dev/null
+++ b/services/ihackernews.json
@@ -0,0 +1,88 @@
+{
+ "api_base_url" : "api.ihackernews.com",
+ "version" : "0.01",
+ "methods" : {
+ "askhn_posts" : {
+ "params" : [
+ "nextid"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/ask/:nextid",
+ "method" : "GET"
+ },
+ "vote" : {
+ "path" : "/vote",
+ "method" : "POST"
+ },
+ "auth_token" : {
+ "path" : "/login",
+ "method" : "POST"
+ },
+ "new_posts" : {
+ "params" : [
+ "nextid"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/new/:nextid",
+ "method" : "GET"
+ },
+ "comment" : {
+ "path" : "/comment",
+ "method" : "POST"
+ },
+ "user_profile" : {
+ "required" : [
+ "userid"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/profile/:userid",
+ "method" : "GET"
+ },
+ "retrieve_page" : {
+ "params" : [
+ "nextid"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/page/:nextid",
+ "method" : "GET"
+ },
+ "posts_from_user" : {
+ "params" : [
+ "nextid"
+ ],
+ "required" : [
+ "username"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/by/:username/:nextid",
+ "method" : "GET"
+ },
+ "comments_for_post" : {
+ "required" : [
+ "id"
+ ],
+ "expected" : [
+ "200"
+ ],
+ "path" : "/comments/:id",
+ "method" : "GET"
+ }
+ },
+ "api_format" : [
+ "json"
+ ],
+ "name" : "ihackernews",
+ "author" : [
+ "franck cuny <franck@lumberjaph.net>"
+ ]
+}