summaryrefslogblamecommitdiff
path: root/services/ihackernews.json
blob: dcfaf4e0493a331a89701724c84277b7e19c8127 (plain) (tree)





















































































                                           



                                                     
 
{
   "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>"
   ],
   "meta" : {
      "documentation" : "http://api.ihackernews.com/"
   }
}