{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/36539997","id":36539997,"diff_hunk":"@@ -315,6 +315,30 @@ def get_flavor(self, request, tenant_id, flavor_id):\n         request.setResponseCode(response_data[1])\n         return json.dumps(response_data[0])\n \n+    @app.route('/v2/<string:tenant_id>/flavors', methods=['GET'])\n+    def get_flavor_list(self, request, tenant_id):\n+        \"\"\"\n+        Returns a list of flavor with the response code 200.\n+        TO DO: The length of flavor list can be set using the control plane.\n+               Also be able to set different flavor types in the future.\n+        \"\"\"\n+        return (\n+            self._region_collection_for_tenant(tenant_id)\n+            .list_flavors(include_details=False, absolutize_url=self.url)\n+        )\n+\n+    @app.route('/v2/<string:tenant_id>/flavors/details', methods=['GET'])","path":"mimic/rest/nova_api.py","position":16,"original_position":16,"commit_id":"73f35102cb5e13c745905e0eb59e2e51d3ccd21a","original_commit_id":"73f35102cb5e13c745905e0eb59e2e51d3ccd21a","user":{"login":"tawalton","id":5943782,"avatar_url":"https://avatars.githubusercontent.com/u/5943782?v=3","gravatar_id":"","url":"https://api.github.com/users/tawalton","html_url":"https://github.com/tawalton","followers_url":"https://api.github.com/users/tawalton/followers","following_url":"https://api.github.com/users/tawalton/following{/other_user}","gists_url":"https://api.github.com/users/tawalton/gists{/gist_id}","starred_url":"https://api.github.com/users/tawalton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tawalton/subscriptions","organizations_url":"https://api.github.com/users/tawalton/orgs","repos_url":"https://api.github.com/users/tawalton/repos","events_url":"https://api.github.com/users/tawalton/events{/privacy}","received_events_url":"https://api.github.com/users/tawalton/received_events","type":"User","site_admin":false},"body":"the route on line 318 above is the /flavors route and the route on line 330 is /flavors/details.   The details route should be detail","created_at":"2015-08-07T17:18:51Z","updated_at":"2015-08-07T17:18:51Z","html_url":"https://github.com/rackerlabs/mimic/pull/361#discussion_r36539997","pull_request_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/361","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments/36539997"},"html":{"href":"https://github.com/rackerlabs/mimic/pull/361#discussion_r36539997"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/361"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/mimic/pulls/361","id":41707416,"html_url":"https://github.com/rackerlabs/mimic/pull/361","diff_url":"https://github.com/rackerlabs/mimic/pull/361.diff","patch_url":"https://github.com/rackerlabs/mimic/pull/361.patch","issue_url":"https://api.github.com/repos/rackerlabs/mimic/issues/361","number":361,"state":"open","locked":false,"title":"Add flavor list api call","user":{"login":"lekhajee","id":1591551,"avatar_url":"https://avatars.githubusercontent.com/u/1591551?v=3","gravatar_id":"","url":"https://api.github.com/users/lekhajee","html_url":"https://github.com/lekhajee","followers_url":"https://api.github.com/users/lekhajee/followers","following_url":"https://api.github.com/users/lekhajee/following{/other_user}","gists_url":"https://api.github.com/users/lekhajee/gists{/gist_id}","starred_url":"https://api.github.com/users/lekhajee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekhajee/subscriptions","organizations_url":"https://api.github.com/users/lekhajee/orgs","repos_url":"https://api.github.com/users/lekhajee/repos","events_url":"https://api.github.com/users/lekhajee/events{/privacy}","received_events_url":"https://api.github.com/users/lekhajee/received_events","type":"User","site_admin":false},"body":"Currently creates a list of 10 random flavors. \r\n\r\nNote: Each time the service is restarted the flavor combination will vary.","created_at":"2015-08-05T18:00:19Z","updated_at":"2015-08-07T17:18:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3a87b0c5d465ce0bcfd8c90a74b782ed6285c6a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/361/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/361/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/issues/361/comments","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/73f35102cb5e13c745905e0eb59e2e51d3ccd21a","head":{"label":"rackerlabs:add-flavor-list-api-call","ref":"add-flavor-list-api-call","sha":"73f35102cb5e13c745905e0eb59e2e51d3ccd21a","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":13158707,"name":"mimic","full_name":"rackerlabs/mimic","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/mimic","description":"An API mock service","fork":false,"url":"https://api.github.com/repos/rackerlabs/mimic","forks_url":"https://api.github.com/repos/rackerlabs/mimic/forks","keys_url":"https://api.github.com/repos/rackerlabs/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/mimic/teams","hooks_url":"https://api.github.com/repos/rackerlabs/mimic/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/mimic/events","assignees_url":"https://api.github.com/repos/rackerlabs/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/mimic/tags","blobs_url":"https://api.github.com/repos/rackerlabs/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/mimic/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/mimic/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/mimic/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/mimic/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/mimic/subscription","commits_url":"https://api.github.com/repos/rackerlabs/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/mimic/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/mimic/merges","archive_url":"https://api.github.com/repos/rackerlabs/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/mimic/downloads","issues_url":"https://api.github.com/repos/rackerlabs/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/mimic/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/mimic/releases{/id}","created_at":"2013-09-27T19:01:16Z","updated_at":"2015-08-06T18:34:37Z","pushed_at":"2015-08-07T16:31:44Z","git_url":"git://github.com/rackerlabs/mimic.git","ssh_url":"git@github.com:rackerlabs/mimic.git","clone_url":"https://github.com/rackerlabs/mimic.git","svn_url":"https://github.com/rackerlabs/mimic","homepage":"","size":4603,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":79,"forks":44,"open_issues":79,"watchers":87,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"2b40783b84ddc6175e999c2ed04d560a61a76687","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":13158707,"name":"mimic","full_name":"rackerlabs/mimic","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/mimic","description":"An API mock service","fork":false,"url":"https://api.github.com/repos/rackerlabs/mimic","forks_url":"https://api.github.com/repos/rackerlabs/mimic/forks","keys_url":"https://api.github.com/repos/rackerlabs/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/mimic/teams","hooks_url":"https://api.github.com/repos/rackerlabs/mimic/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/mimic/events","assignees_url":"https://api.github.com/repos/rackerlabs/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/mimic/tags","blobs_url":"https://api.github.com/repos/rackerlabs/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/mimic/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/mimic/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/mimic/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/mimic/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/mimic/subscription","commits_url":"https://api.github.com/repos/rackerlabs/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/mimic/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/mimic/merges","archive_url":"https://api.github.com/repos/rackerlabs/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/mimic/downloads","issues_url":"https://api.github.com/repos/rackerlabs/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/mimic/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/mimic/releases{/id}","created_at":"2013-09-27T19:01:16Z","updated_at":"2015-08-06T18:34:37Z","pushed_at":"2015-08-07T16:31:44Z","git_url":"git://github.com/rackerlabs/mimic.git","ssh_url":"git@github.com:rackerlabs/mimic.git","clone_url":"https://github.com/rackerlabs/mimic.git","svn_url":"https://github.com/rackerlabs/mimic","homepage":"","size":4603,"stargazers_count":87,"watchers_count":87,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":79,"forks":44,"open_issues":79,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/361"},"html":{"href":"https://github.com/rackerlabs/mimic/pull/361"},"issue":{"href":"https://api.github.com/repos/rackerlabs/mimic/issues/361"},"comments":{"href":"https://api.github.com/repos/rackerlabs/mimic/issues/361/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/361/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/mimic/pulls/361/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/mimic/statuses/73f35102cb5e13c745905e0eb59e2e51d3ccd21a"}}}}