summaryrefslogblamecommitdiff
path: root/services/ihackernews.json
blob: a63353bec8d7245810c6b56f7899eb0d221a6dcb (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                          
                      

                       




                          














                                 




                          










                                 




                          






                                     




                         






                                  







                          






                                          




                          












                                           



                                                     
 
{
   "api_base_url" : "api.ihackernews.com",
   "version" : "0.02",
   "methods" : {
      "askhn_posts" : {
         "params" : {
            "optional" : [
               "nextid"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/ask/:nextid",
         "method" : "GET"
      },
      "vote" : {
         "path" : "/vote",
         "method" : "POST"
      },
      "auth_token" : {
         "path" : "/login",
         "method" : "POST"
      },
      "new_posts" : {
         "params" : {
            "optional" : [
               "nextid"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/new/:nextid",
         "method" : "GET"
      },
      "comment" : {
         "path" : "/comment",
         "method" : "POST"
      },
      "user_profile" : {
         "params" : {
            "required" : [
               "userid"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/profile/:userid",
         "method" : "GET"
      },
      "retrieve_page" : {
         "params" : {
            "optinal" : [
               "nextid"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/page/:nextid",
         "method" : "GET"
      },
      "posts_from_user" : {
         "params" : {
            "required" : [
               "username"
            ],
            "optional" : [
               "nextid"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/by/:username/:nextid",
         "method" : "GET"
      },
      "comments_for_post" : {
         "params" : {
            "required" : [
               "id"
            ]
         },
         "expected" : [
            "200"
         ],
         "path" : "/comments/:id",
         "method" : "GET"
      }
   },
   "api_format" : [
      "json"
   ],
   "name" : "ihackernews",
   "author" : [
      "franck cuny <franck@lumberjaph.net>"
   ],
   "meta" : {
      "documentation" : "http://api.ihackernews.com/"
   }
}