{"action":"created","comment":{"url":"https://api.github.com/repos/marblejs/example/pulls/comments/223693494","pull_request_review_id":162878699,"id":223693494,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzY5MzQ5NA==","diff_hunk":"@@ -0,0 +1,16 @@\n+import * as path from 'path';\n+import { map, mapTo, mergeMap } from 'rxjs/operators';\n+import { Effect } from '@marblejs/core';\n+import { ContentType } from '@marblejs/core/dist/+internal/http';\n+import * as FileHelper from '@marblejs/core/dist/+internal/files';\n+\n+const STATIC_PATH = path.resolve(__dirname, '../../../../dist');\n+const DOC_ENTRYPOINT = 'index.html';","path":"src/api/common/effects/getDoc.effect.ts","position":8,"original_position":8,"commit_id":"a461fa0884bb4b500d18c931a6689ef0a231254f","original_commit_id":"a461fa0884bb4b500d18c931a6689ef0a231254f","user":{"login":"krzysztof-miemiec","id":396693,"node_id":"MDQ6VXNlcjM5NjY5Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/396693?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysztof-miemiec","html_url":"https://github.com/krzysztof-miemiec","followers_url":"https://api.github.com/users/krzysztof-miemiec/followers","following_url":"https://api.github.com/users/krzysztof-miemiec/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof-miemiec/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof-miemiec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof-miemiec/subscriptions","organizations_url":"https://api.github.com/users/krzysztof-miemiec/orgs","repos_url":"https://api.github.com/users/krzysztof-miemiec/repos","events_url":"https://api.github.com/users/krzysztof-miemiec/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof-miemiec/received_events","type":"User","site_admin":false},"body":"I'd prefer to use a different filename for this, that says explicitly that it's documentation (`api-doc.html`/`docs.html`)?","created_at":"2018-10-09T13:11:43Z","updated_at":"2018-10-09T13:13:11Z","html_url":"https://github.com/marblejs/example/pull/22#discussion_r223693494","pull_request_url":"https://api.github.com/repos/marblejs/example/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/marblejs/example/pulls/comments/223693494"},"html":{"href":"https://github.com/marblejs/example/pull/22#discussion_r223693494"},"pull_request":{"href":"https://api.github.com/repos/marblejs/example/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/marblejs/example/pulls/22","id":221428668,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNDI4NjY4","html_url":"https://github.com/marblejs/example/pull/22","diff_url":"https://github.com/marblejs/example/pull/22.diff","patch_url":"https://github.com/marblejs/example/pull/22.patch","issue_url":"https://api.github.com/repos/marblejs/example/issues/22","number":22,"state":"open","locked":false,"title":"feat: API doc blueprints + serve it statically","user":{"login":"JozefFlakus","id":7793430,"node_id":"MDQ6VXNlcjc3OTM0MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7793430?v=4","gravatar_id":"","url":"https://api.github.com/users/JozefFlakus","html_url":"https://github.com/JozefFlakus","followers_url":"https://api.github.com/users/JozefFlakus/followers","following_url":"https://api.github.com/users/JozefFlakus/following{/other_user}","gists_url":"https://api.github.com/users/JozefFlakus/gists{/gist_id}","starred_url":"https://api.github.com/users/JozefFlakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JozefFlakus/subscriptions","organizations_url":"https://api.github.com/users/JozefFlakus/orgs","repos_url":"https://api.github.com/users/JozefFlakus/repos","events_url":"https://api.github.com/users/JozefFlakus/events{/privacy}","received_events_url":"https://api.github.com/users/JozefFlakus/received_events","type":"User","site_admin":false},"body":"## Whats new?\r\n- generate API docs using `aglio` and API-blueprint schemas\r\n- serve generated API documentation statically via `/api/v1/doc` endpoint\r\n- API documentation for: `auth`, `user`, `actor`, `movie` features","created_at":"2018-10-09T12:57:18Z","updated_at":"2018-10-09T13:13:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9354b7c2d207aa0e3eaadd6e0c7053b347b419b","assignee":{"login":"JozefFlakus","id":7793430,"node_id":"MDQ6VXNlcjc3OTM0MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7793430?v=4","gravatar_id":"","url":"https://api.github.com/users/JozefFlakus","html_url":"https://github.com/JozefFlakus","followers_url":"https://api.github.com/users/JozefFlakus/followers","following_url":"https://api.github.com/users/JozefFlakus/following{/other_user}","gists_url":"https://api.github.com/users/JozefFlakus/gists{/gist_id}","starred_url":"https://api.github.com/users/JozefFlakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JozefFlakus/subscriptions","organizations_url":"https://api.github.com/users/JozefFlakus/orgs","repos_url":"https://api.github.com/users/JozefFlakus/repos","events_url":"https://api.github.com/users/JozefFlakus/events{/privacy}","received_events_url":"https://api.github.com/users/JozefFlakus/received_events","type":"User","site_admin":false},"assignees":[{"login":"JozefFlakus","id":7793430,"node_id":"MDQ6VXNlcjc3OTM0MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7793430?v=4","gravatar_id":"","url":"https://api.github.com/users/JozefFlakus","html_url":"https://github.com/JozefFlakus","followers_url":"https://api.github.com/users/JozefFlakus/followers","following_url":"https://api.github.com/users/JozefFlakus/following{/other_user}","gists_url":"https://api.github.com/users/JozefFlakus/gists{/gist_id}","starred_url":"https://api.github.com/users/JozefFlakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JozefFlakus/subscriptions","organizations_url":"https://api.github.com/users/JozefFlakus/orgs","repos_url":"https://api.github.com/users/JozefFlakus/repos","events_url":"https://api.github.com/users/JozefFlakus/events{/privacy}","received_events_url":"https://api.github.com/users/JozefFlakus/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"sebastianmusial","id":8036640,"node_id":"MDQ6VXNlcjgwMzY2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/8036640?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastianmusial","html_url":"https://github.com/sebastianmusial","followers_url":"https://api.github.com/users/sebastianmusial/followers","following_url":"https://api.github.com/users/sebastianmusial/following{/other_user}","gists_url":"https://api.github.com/users/sebastianmusial/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianmusial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianmusial/subscriptions","organizations_url":"https://api.github.com/users/sebastianmusial/orgs","repos_url":"https://api.github.com/users/sebastianmusial/repos","events_url":"https://api.github.com/users/sebastianmusial/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianmusial/received_events","type":"User","site_admin":false},{"login":"pdomaleczny","id":10775590,"node_id":"MDQ6VXNlcjEwNzc1NTkw","avatar_url":"https://avatars0.githubusercontent.com/u/10775590?v=4","gravatar_id":"","url":"https://api.github.com/users/pdomaleczny","html_url":"https://github.com/pdomaleczny","followers_url":"https://api.github.com/users/pdomaleczny/followers","following_url":"https://api.github.com/users/pdomaleczny/following{/other_user}","gists_url":"https://api.github.com/users/pdomaleczny/gists{/gist_id}","starred_url":"https://api.github.com/users/pdomaleczny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdomaleczny/subscriptions","organizations_url":"https://api.github.com/users/pdomaleczny/orgs","repos_url":"https://api.github.com/users/pdomaleczny/repos","events_url":"https://api.github.com/users/pdomaleczny/events{/privacy}","received_events_url":"https://api.github.com/users/pdomaleczny/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1035811244,"node_id":"MDU6TGFiZWwxMDM1ODExMjQ0","url":"https://api.github.com/repos/marblejs/example/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/marblejs/example/pulls/22/commits","review_comments_url":"https://api.github.com/repos/marblejs/example/pulls/22/comments","review_comment_url":"https://api.github.com/repos/marblejs/example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marblejs/example/issues/22/comments","statuses_url":"https://api.github.com/repos/marblejs/example/statuses/a461fa0884bb4b500d18c931a6689ef0a231254f","head":{"label":"marblejs:feat/doc","ref":"feat/doc","sha":"a461fa0884bb4b500d18c931a6689ef0a231254f","user":{"login":"marblejs","id":39135797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTM1Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/39135797?v=4","gravatar_id":"","url":"https://api.github.com/users/marblejs","html_url":"https://github.com/marblejs","followers_url":"https://api.github.com/users/marblejs/followers","following_url":"https://api.github.com/users/marblejs/following{/other_user}","gists_url":"https://api.github.com/users/marblejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marblejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marblejs/subscriptions","organizations_url":"https://api.github.com/users/marblejs/orgs","repos_url":"https://api.github.com/users/marblejs/repos","events_url":"https://api.github.com/users/marblejs/events{/privacy}","received_events_url":"https://api.github.com/users/marblejs/received_events","type":"Organization","site_admin":false},"repo":{"id":146180201,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxODAyMDE=","name":"example","full_name":"marblejs/example","private":false,"owner":{"login":"marblejs","id":39135797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTM1Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/39135797?v=4","gravatar_id":"","url":"https://api.github.com/users/marblejs","html_url":"https://github.com/marblejs","followers_url":"https://api.github.com/users/marblejs/followers","following_url":"https://api.github.com/users/marblejs/following{/other_user}","gists_url":"https://api.github.com/users/marblejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marblejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marblejs/subscriptions","organizations_url":"https://api.github.com/users/marblejs/orgs","repos_url":"https://api.github.com/users/marblejs/repos","events_url":"https://api.github.com/users/marblejs/events{/privacy}","received_events_url":"https://api.github.com/users/marblejs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/marblejs/example","description":"Example project written using Marble.js framework (work in progress)","fork":false,"url":"https://api.github.com/repos/marblejs/example","forks_url":"https://api.github.com/repos/marblejs/example/forks","keys_url":"https://api.github.com/repos/marblejs/example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marblejs/example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marblejs/example/teams","hooks_url":"https://api.github.com/repos/marblejs/example/hooks","issue_events_url":"https://api.github.com/repos/marblejs/example/issues/events{/number}","events_url":"https://api.github.com/repos/marblejs/example/events","assignees_url":"https://api.github.com/repos/marblejs/example/assignees{/user}","branches_url":"https://api.github.com/repos/marblejs/example/branches{/branch}","tags_url":"https://api.github.com/repos/marblejs/example/tags","blobs_url":"https://api.github.com/repos/marblejs/example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marblejs/example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marblejs/example/git/refs{/sha}","trees_url":"https://api.github.com/repos/marblejs/example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marblejs/example/statuses/{sha}","languages_url":"https://api.github.com/repos/marblejs/example/languages","stargazers_url":"https://api.github.com/repos/marblejs/example/stargazers","contributors_url":"https://api.github.com/repos/marblejs/example/contributors","subscribers_url":"https://api.github.com/repos/marblejs/example/subscribers","subscription_url":"https://api.github.com/repos/marblejs/example/subscription","commits_url":"https://api.github.com/repos/marblejs/example/commits{/sha}","git_commits_url":"https://api.github.com/repos/marblejs/example/git/commits{/sha}","comments_url":"https://api.github.com/repos/marblejs/example/comments{/number}","issue_comment_url":"https://api.github.com/repos/marblejs/example/issues/comments{/number}","contents_url":"https://api.github.com/repos/marblejs/example/contents/{+path}","compare_url":"https://api.github.com/repos/marblejs/example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marblejs/example/merges","archive_url":"https://api.github.com/repos/marblejs/example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marblejs/example/downloads","issues_url":"https://api.github.com/repos/marblejs/example/issues{/number}","pulls_url":"https://api.github.com/repos/marblejs/example/pulls{/number}","milestones_url":"https://api.github.com/repos/marblejs/example/milestones{/number}","notifications_url":"https://api.github.com/repos/marblejs/example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marblejs/example/labels{/name}","releases_url":"https://api.github.com/repos/marblejs/example/releases{/id}","deployments_url":"https://api.github.com/repos/marblejs/example/deployments","created_at":"2018-08-26T12:50:20Z","updated_at":"2018-10-09T12:55:26Z","pushed_at":"2018-10-09T12:57:18Z","git_url":"git://github.com/marblejs/example.git","ssh_url":"git@github.com:marblejs/example.git","clone_url":"https://github.com/marblejs/example.git","svn_url":"https://github.com/marblejs/example","homepage":"","size":1126,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"marblejs:master","ref":"master","sha":"a5781c79873cc5d4a09a14ee593e797ab89c8d62","user":{"login":"marblejs","id":39135797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTM1Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/39135797?v=4","gravatar_id":"","url":"https://api.github.com/users/marblejs","html_url":"https://github.com/marblejs","followers_url":"https://api.github.com/users/marblejs/followers","following_url":"https://api.github.com/users/marblejs/following{/other_user}","gists_url":"https://api.github.com/users/marblejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marblejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marblejs/subscriptions","organizations_url":"https://api.github.com/users/marblejs/orgs","repos_url":"https://api.github.com/users/marblejs/repos","events_url":"https://api.github.com/users/marblejs/events{/privacy}","received_events_url":"https://api.github.com/users/marblejs/received_events","type":"Organization","site_admin":false},"repo":{"id":146180201,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxODAyMDE=","name":"example","full_name":"marblejs/example","private":false,"owner":{"login":"marblejs","id":39135797,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MTM1Nzk3","avatar_url":"https://avatars0.githubusercontent.com/u/39135797?v=4","gravatar_id":"","url":"https://api.github.com/users/marblejs","html_url":"https://github.com/marblejs","followers_url":"https://api.github.com/users/marblejs/followers","following_url":"https://api.github.com/users/marblejs/following{/other_user}","gists_url":"https://api.github.com/users/marblejs/gists{/gist_id}","starred_url":"https://api.github.com/users/marblejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marblejs/subscriptions","organizations_url":"https://api.github.com/users/marblejs/orgs","repos_url":"https://api.github.com/users/marblejs/repos","events_url":"https://api.github.com/users/marblejs/events{/privacy}","received_events_url":"https://api.github.com/users/marblejs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/marblejs/example","description":"Example project written using Marble.js framework (work in progress)","fork":false,"url":"https://api.github.com/repos/marblejs/example","forks_url":"https://api.github.com/repos/marblejs/example/forks","keys_url":"https://api.github.com/repos/marblejs/example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marblejs/example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marblejs/example/teams","hooks_url":"https://api.github.com/repos/marblejs/example/hooks","issue_events_url":"https://api.github.com/repos/marblejs/example/issues/events{/number}","events_url":"https://api.github.com/repos/marblejs/example/events","assignees_url":"https://api.github.com/repos/marblejs/example/assignees{/user}","branches_url":"https://api.github.com/repos/marblejs/example/branches{/branch}","tags_url":"https://api.github.com/repos/marblejs/example/tags","blobs_url":"https://api.github.com/repos/marblejs/example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marblejs/example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marblejs/example/git/refs{/sha}","trees_url":"https://api.github.com/repos/marblejs/example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marblejs/example/statuses/{sha}","languages_url":"https://api.github.com/repos/marblejs/example/languages","stargazers_url":"https://api.github.com/repos/marblejs/example/stargazers","contributors_url":"https://api.github.com/repos/marblejs/example/contributors","subscribers_url":"https://api.github.com/repos/marblejs/example/subscribers","subscription_url":"https://api.github.com/repos/marblejs/example/subscription","commits_url":"https://api.github.com/repos/marblejs/example/commits{/sha}","git_commits_url":"https://api.github.com/repos/marblejs/example/git/commits{/sha}","comments_url":"https://api.github.com/repos/marblejs/example/comments{/number}","issue_comment_url":"https://api.github.com/repos/marblejs/example/issues/comments{/number}","contents_url":"https://api.github.com/repos/marblejs/example/contents/{+path}","compare_url":"https://api.github.com/repos/marblejs/example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marblejs/example/merges","archive_url":"https://api.github.com/repos/marblejs/example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marblejs/example/downloads","issues_url":"https://api.github.com/repos/marblejs/example/issues{/number}","pulls_url":"https://api.github.com/repos/marblejs/example/pulls{/number}","milestones_url":"https://api.github.com/repos/marblejs/example/milestones{/number}","notifications_url":"https://api.github.com/repos/marblejs/example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marblejs/example/labels{/name}","releases_url":"https://api.github.com/repos/marblejs/example/releases{/id}","deployments_url":"https://api.github.com/repos/marblejs/example/deployments","created_at":"2018-08-26T12:50:20Z","updated_at":"2018-10-09T12:55:26Z","pushed_at":"2018-10-09T12:57:18Z","git_url":"git://github.com/marblejs/example.git","ssh_url":"git@github.com:marblejs/example.git","clone_url":"https://github.com/marblejs/example.git","svn_url":"https://github.com/marblejs/example","homepage":"","size":1126,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marblejs/example/pulls/22"},"html":{"href":"https://github.com/marblejs/example/pull/22"},"issue":{"href":"https://api.github.com/repos/marblejs/example/issues/22"},"comments":{"href":"https://api.github.com/repos/marblejs/example/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/marblejs/example/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/marblejs/example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marblejs/example/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/marblejs/example/statuses/a461fa0884bb4b500d18c931a6689ef0a231254f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"krzysztof-miemiec"}}