{"action":"created","comment":{"url":"https://api.github.com/repos/aspc/mainsite/pulls/comments/44459211","id":44459211,"diff_hunk":"@@ -0,0 +1,264 @@\n+{% extends \"base_page.html\" %}\n+\n+{% load staticfiles %}\n+\n+{% block \"css\" %}\n+    {{ block.super }}\n+{% endblock %}\n+\n+{% block \"title\" %}ASPC API{% endblock %}\n+\n+{% block \"page_title\" %}ASPC API{% endblock %}\n+\n+{% block \"content\" %}\n+<!-- Note most of this content was auto-generated by README.md and npm markdown -->\n+<h1 id=\"aspc-api\">ASPC API</h1>\n+<p>A standardized way to access ASPC features. Currently there is only an API for the Menu.</p>\n+<h2 id=\"authentication-token\">Authentication Token</h2>\n+{% if token %}\n+<p>Your authentication token is: <code>{{ token }}</code></p>\n+<p>Please use this authentication token to access all the endpoints below. You are limited to 1000 requests per day. Please contact the developers if you wish to raise the limit.</p>\n+{% else %}\n+<p>You must login to obtain your authentication token.</p>\n+{% endif %}\n+<h2 id=\"example-using-curl\">Example using cURL</h2>\n+<h3 id=\"request-get-\">Request (GET)</h3>\n+{% if token %}\n+<pre><code>curl -H &quot;Authorization:\n+    Token {{ token }}&quot; https://aspc.pomona.edu/api/menu/","path":"aspc/api/templates/api/landing.html","position":28,"original_position":28,"commit_id":"98797a71ae03af15b89569fba79b0d8fbd984d92","original_commit_id":"98797a71ae03af15b89569fba79b0d8fbd984d92","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"body":"I had to intentionally/manually break it into two lines because it doesn't fit on one. Maybe I can tweak the CSS to make the font smaller.","created_at":"2015-11-10T20:20:05Z","updated_at":"2015-11-10T20:20:05Z","html_url":"https://github.com/aspc/mainsite/pull/45#discussion_r44459211","pull_request_url":"https://api.github.com/repos/aspc/mainsite/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/comments/44459211"},"html":{"href":"https://github.com/aspc/mainsite/pull/45#discussion_r44459211"},"pull_request":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/aspc/mainsite/pulls/45","id":46371367,"html_url":"https://github.com/aspc/mainsite/pull/45","diff_url":"https://github.com/aspc/mainsite/pull/45.diff","patch_url":"https://github.com/aspc/mainsite/pull/45.patch","issue_url":"https://api.github.com/repos/aspc/mainsite/issues/45","number":45,"state":"open","locked":false,"title":"Create a token-based RESTful API for ASPC menu","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"body":"I went ahead and implemented a part of number 4 of our project ideas list. Please see `http://docs.aspcmenu.apiary.io/` and the commit message.\r\n\r\nI'm going to tag you all as Aloke has suggested through email: @alokedesai @mattdahl @ZiqiXiong","created_at":"2015-09-30T07:59:16Z","updated_at":"2015-11-10T20:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e63b34bb371e146933437558fa58fb0c837af752","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspc/mainsite/pulls/45/commits","review_comments_url":"https://api.github.com/repos/aspc/mainsite/pulls/45/comments","review_comment_url":"https://api.github.com/repos/aspc/mainsite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aspc/mainsite/issues/45/comments","statuses_url":"https://api.github.com/repos/aspc/mainsite/statuses/98797a71ae03af15b89569fba79b0d8fbd984d92","head":{"label":"theworldbright:aspc-menu-api","ref":"aspc-menu-api","sha":"98797a71ae03af15b89569fba79b0d8fbd984d92","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"repo":{"id":43410831,"name":"mainsite","full_name":"theworldbright/mainsite","owner":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theworldbright/mainsite","description":"The code powering the ASPC main site (including menus, course scheduler, sagebooks, and housing reviews).","fork":true,"url":"https://api.github.com/repos/theworldbright/mainsite","forks_url":"https://api.github.com/repos/theworldbright/mainsite/forks","keys_url":"https://api.github.com/repos/theworldbright/mainsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theworldbright/mainsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theworldbright/mainsite/teams","hooks_url":"https://api.github.com/repos/theworldbright/mainsite/hooks","issue_events_url":"https://api.github.com/repos/theworldbright/mainsite/issues/events{/number}","events_url":"https://api.github.com/repos/theworldbright/mainsite/events","assignees_url":"https://api.github.com/repos/theworldbright/mainsite/assignees{/user}","branches_url":"https://api.github.com/repos/theworldbright/mainsite/branches{/branch}","tags_url":"https://api.github.com/repos/theworldbright/mainsite/tags","blobs_url":"https://api.github.com/repos/theworldbright/mainsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theworldbright/mainsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theworldbright/mainsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/theworldbright/mainsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theworldbright/mainsite/statuses/{sha}","languages_url":"https://api.github.com/repos/theworldbright/mainsite/languages","stargazers_url":"https://api.github.com/repos/theworldbright/mainsite/stargazers","contributors_url":"https://api.github.com/repos/theworldbright/mainsite/contributors","subscribers_url":"https://api.github.com/repos/theworldbright/mainsite/subscribers","subscription_url":"https://api.github.com/repos/theworldbright/mainsite/subscription","commits_url":"https://api.github.com/repos/theworldbright/mainsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/theworldbright/mainsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/theworldbright/mainsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/theworldbright/mainsite/issues/comments{/number}","contents_url":"https://api.github.com/repos/theworldbright/mainsite/contents/{+path}","compare_url":"https://api.github.com/repos/theworldbright/mainsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theworldbright/mainsite/merges","archive_url":"https://api.github.com/repos/theworldbright/mainsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theworldbright/mainsite/downloads","issues_url":"https://api.github.com/repos/theworldbright/mainsite/issues{/number}","pulls_url":"https://api.github.com/repos/theworldbright/mainsite/pulls{/number}","milestones_url":"https://api.github.com/repos/theworldbright/mainsite/milestones{/number}","notifications_url":"https://api.github.com/repos/theworldbright/mainsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theworldbright/mainsite/labels{/name}","releases_url":"https://api.github.com/repos/theworldbright/mainsite/releases{/id}","created_at":"2015-09-30T04:03:20Z","updated_at":"2015-09-30T04:03:21Z","pushed_at":"2015-11-10T08:05:38Z","git_url":"git://github.com/theworldbright/mainsite.git","ssh_url":"git@github.com:theworldbright/mainsite.git","clone_url":"https://github.com/theworldbright/mainsite.git","svn_url":"https://github.com/theworldbright/mainsite","homepage":"https://aspc.pomona.edu/","size":7270,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aspc:master","ref":"master","sha":"01027983bd5a47095872342dd815a1d8c93f9ed0","user":{"login":"aspc","id":1634479,"avatar_url":"https://avatars.githubusercontent.com/u/1634479?v=3","gravatar_id":"","url":"https://api.github.com/users/aspc","html_url":"https://github.com/aspc","followers_url":"https://api.github.com/users/aspc/followers","following_url":"https://api.github.com/users/aspc/following{/other_user}","gists_url":"https://api.github.com/users/aspc/gists{/gist_id}","starred_url":"https://api.github.com/users/aspc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspc/subscriptions","organizations_url":"https://api.github.com/users/aspc/orgs","repos_url":"https://api.github.com/users/aspc/repos","events_url":"https://api.github.com/users/aspc/events{/privacy}","received_events_url":"https://api.github.com/users/aspc/received_events","type":"Organization","site_admin":false},"repo":{"id":3998083,"name":"mainsite","full_name":"aspc/mainsite","owner":{"login":"aspc","id":1634479,"avatar_url":"https://avatars.githubusercontent.com/u/1634479?v=3","gravatar_id":"","url":"https://api.github.com/users/aspc","html_url":"https://github.com/aspc","followers_url":"https://api.github.com/users/aspc/followers","following_url":"https://api.github.com/users/aspc/following{/other_user}","gists_url":"https://api.github.com/users/aspc/gists{/gist_id}","starred_url":"https://api.github.com/users/aspc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspc/subscriptions","organizations_url":"https://api.github.com/users/aspc/orgs","repos_url":"https://api.github.com/users/aspc/repos","events_url":"https://api.github.com/users/aspc/events{/privacy}","received_events_url":"https://api.github.com/users/aspc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspc/mainsite","description":"The code powering the ASPC main site (including menus, course scheduler, sagebooks, and housing reviews).","fork":false,"url":"https://api.github.com/repos/aspc/mainsite","forks_url":"https://api.github.com/repos/aspc/mainsite/forks","keys_url":"https://api.github.com/repos/aspc/mainsite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspc/mainsite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspc/mainsite/teams","hooks_url":"https://api.github.com/repos/aspc/mainsite/hooks","issue_events_url":"https://api.github.com/repos/aspc/mainsite/issues/events{/number}","events_url":"https://api.github.com/repos/aspc/mainsite/events","assignees_url":"https://api.github.com/repos/aspc/mainsite/assignees{/user}","branches_url":"https://api.github.com/repos/aspc/mainsite/branches{/branch}","tags_url":"https://api.github.com/repos/aspc/mainsite/tags","blobs_url":"https://api.github.com/repos/aspc/mainsite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspc/mainsite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspc/mainsite/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspc/mainsite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspc/mainsite/statuses/{sha}","languages_url":"https://api.github.com/repos/aspc/mainsite/languages","stargazers_url":"https://api.github.com/repos/aspc/mainsite/stargazers","contributors_url":"https://api.github.com/repos/aspc/mainsite/contributors","subscribers_url":"https://api.github.com/repos/aspc/mainsite/subscribers","subscription_url":"https://api.github.com/repos/aspc/mainsite/subscription","commits_url":"https://api.github.com/repos/aspc/mainsite/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspc/mainsite/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspc/mainsite/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspc/mainsite/issues/comments{/number}","contents_url":"https://api.github.com/repos/aspc/mainsite/contents/{+path}","compare_url":"https://api.github.com/repos/aspc/mainsite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspc/mainsite/merges","archive_url":"https://api.github.com/repos/aspc/mainsite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspc/mainsite/downloads","issues_url":"https://api.github.com/repos/aspc/mainsite/issues{/number}","pulls_url":"https://api.github.com/repos/aspc/mainsite/pulls{/number}","milestones_url":"https://api.github.com/repos/aspc/mainsite/milestones{/number}","notifications_url":"https://api.github.com/repos/aspc/mainsite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspc/mainsite/labels{/name}","releases_url":"https://api.github.com/repos/aspc/mainsite/releases{/id}","created_at":"2012-04-11T20:43:21Z","updated_at":"2015-09-28T05:11:59Z","pushed_at":"2015-11-10T08:05:40Z","git_url":"git://github.com/aspc/mainsite.git","ssh_url":"git@github.com:aspc/mainsite.git","clone_url":"https://github.com/aspc/mainsite.git","svn_url":"https://github.com/aspc/mainsite","homepage":"https://aspc.pomona.edu/","size":9534,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":13,"forks":7,"open_issues":13,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/45"},"html":{"href":"https://github.com/aspc/mainsite/pull/45"},"issue":{"href":"https://api.github.com/repos/aspc/mainsite/issues/45"},"comments":{"href":"https://api.github.com/repos/aspc/mainsite/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aspc/mainsite/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/aspc/mainsite/statuses/98797a71ae03af15b89569fba79b0d8fbd984d92"}}}}