{"action":"created","comment":{"url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/comments/194371513","pull_request_review_id":127528963,"id":194371513,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDM3MTUxMw==","diff_hunk":"@@ -0,0 +1,73 @@\n+---\n+converter: markdown\n+metadata:\n+  title: Associating an Authorization Policy with Form Configuration\n+slug: get-started/authorization-policy/associating-authorization-policy-formconfiguration\n+---\n+\n+This guide will help you associate an Authorization Policy with Form Configuration. \n+\n+## Requirements\n+So that you can follow the steps in this tutorial, you should understand the concept of Authorization Policy, and you should have created an Authorization Policy. \n+\n+* [Authorization Policy](/get-started/authorization-policy/authorization-policy) \n+* [Adding an Authorization Policy](/get-started/authorization-policy/adding-authorization-policy)\n+\n+## Steps \n+\n+Associating an Authorization Policy with Form Configuration is a two-step process:\n+\n+1. Create Form Configuration\n+2. Add `authorization_policies` key to Form Configuration\n+\n+### Step 1: Create Form Configuration\n+Assuming you have a simple form that allows to change the user's last name, the configuration file can look like this:\n+\n+{% raw %}\n+\n+```liquid\n+---\n+name: update_last_name\n+resource: User\n+configuration:\n+  last_name:\n+    validation:\n+      presence: {}\n+---\n+{% form url: \"/api/users/{{ current_user.id }}\" %}","path":"marketplace_builder/pages/getting-started/authorization-policy/associating-authorization-policy-formconfiguration.liquid","position":37,"original_position":37,"commit_id":"6f34b8d64afed217f9e6cfd34550ec1bb2419297","original_commit_id":"6f34b8d64afed217f9e6cfd34550ec1bb2419297","user":{"login":"pavelloz","id":546845,"node_id":"MDQ6VXNlcjU0Njg0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/546845?v=4","gravatar_id":"","url":"https://api.github.com/users/pavelloz","html_url":"https://github.com/pavelloz","followers_url":"https://api.github.com/users/pavelloz/followers","following_url":"https://api.github.com/users/pavelloz/following{/other_user}","gists_url":"https://api.github.com/users/pavelloz/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelloz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelloz/subscriptions","organizations_url":"https://api.github.com/users/pavelloz/orgs","repos_url":"https://api.github.com/users/pavelloz/repos","events_url":"https://api.github.com/users/pavelloz/events{/privacy}","received_events_url":"https://api.github.com/users/pavelloz/received_events","type":"User","site_admin":false},"body":"I propose to just `...` everything below `---` - it will make our lifes easier later on, since this every line is deprecated :)","created_at":"2018-06-11T11:28:45Z","updated_at":"2018-06-11T11:28:46Z","html_url":"https://github.com/mdyd-dev/nearme-documentation/pull/102#discussion_r194371513","pull_request_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/comments/194371513"},"html":{"href":"https://github.com/mdyd-dev/nearme-documentation/pull/102#discussion_r194371513"},"pull_request":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102","id":192425790,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNDI1Nzkw","html_url":"https://github.com/mdyd-dev/nearme-documentation/pull/102","diff_url":"https://github.com/mdyd-dev/nearme-documentation/pull/102.diff","patch_url":"https://github.com/mdyd-dev/nearme-documentation/pull/102.patch","issue_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/102","number":102,"state":"open","locked":false,"title":"Create associating-authorization-policy-formconfiguration.liquid","user":{"login":"diana-lakatos","id":4191691,"node_id":"MDQ6VXNlcjQxOTE2OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/4191691?v=4","gravatar_id":"","url":"https://api.github.com/users/diana-lakatos","html_url":"https://github.com/diana-lakatos","followers_url":"https://api.github.com/users/diana-lakatos/followers","following_url":"https://api.github.com/users/diana-lakatos/following{/other_user}","gists_url":"https://api.github.com/users/diana-lakatos/gists{/gist_id}","starred_url":"https://api.github.com/users/diana-lakatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diana-lakatos/subscriptions","organizations_url":"https://api.github.com/users/diana-lakatos/orgs","repos_url":"https://api.github.com/users/diana-lakatos/repos","events_url":"https://api.github.com/users/diana-lakatos/events{/privacy}","received_events_url":"https://api.github.com/users/diana-lakatos/received_events","type":"User","site_admin":false},"body":"Associating an Authorization Policy with Form Configuration tutorial for the Get Started/Authorization Policy section. ","created_at":"2018-06-04T14:25:52Z","updated_at":"2018-06-11T11:28:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcec6b64569858ec8fc9ef8a208b0f6b33ca1bed","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102/commits","review_comments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102/comments","review_comment_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/102/comments","statuses_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/statuses/6f34b8d64afed217f9e6cfd34550ec1bb2419297","head":{"label":"mdyd-dev:associating-authorization-policy-formconfiguration","ref":"associating-authorization-policy-formconfiguration","sha":"6f34b8d64afed217f9e6cfd34550ec1bb2419297","user":{"login":"mdyd-dev","id":1442324,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDIzMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1442324?v=4","gravatar_id":"","url":"https://api.github.com/users/mdyd-dev","html_url":"https://github.com/mdyd-dev","followers_url":"https://api.github.com/users/mdyd-dev/followers","following_url":"https://api.github.com/users/mdyd-dev/following{/other_user}","gists_url":"https://api.github.com/users/mdyd-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mdyd-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdyd-dev/subscriptions","organizations_url":"https://api.github.com/users/mdyd-dev/orgs","repos_url":"https://api.github.com/users/mdyd-dev/repos","events_url":"https://api.github.com/users/mdyd-dev/events{/privacy}","received_events_url":"https://api.github.com/users/mdyd-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":131636695,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE2MzY2OTU=","name":"nearme-documentation","full_name":"mdyd-dev/nearme-documentation","owner":{"login":"mdyd-dev","id":1442324,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDIzMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1442324?v=4","gravatar_id":"","url":"https://api.github.com/users/mdyd-dev","html_url":"https://github.com/mdyd-dev","followers_url":"https://api.github.com/users/mdyd-dev/followers","following_url":"https://api.github.com/users/mdyd-dev/following{/other_user}","gists_url":"https://api.github.com/users/mdyd-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mdyd-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdyd-dev/subscriptions","organizations_url":"https://api.github.com/users/mdyd-dev/orgs","repos_url":"https://api.github.com/users/mdyd-dev/repos","events_url":"https://api.github.com/users/mdyd-dev/events{/privacy}","received_events_url":"https://api.github.com/users/mdyd-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdyd-dev/nearme-documentation","description":null,"fork":false,"url":"https://api.github.com/repos/mdyd-dev/nearme-documentation","forks_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/forks","keys_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/teams","hooks_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/hooks","issue_events_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/events","assignees_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/tags","blobs_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/languages","stargazers_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/stargazers","contributors_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/contributors","subscribers_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/subscribers","subscription_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/subscription","commits_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/merges","archive_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/downloads","issues_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/labels{/name}","releases_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/deployments","created_at":"2018-04-30T19:17:06Z","updated_at":"2018-06-11T11:27:21Z","pushed_at":"2018-06-11T11:27:18Z","git_url":"git://github.com/mdyd-dev/nearme-documentation.git","ssh_url":"git@github.com:mdyd-dev/nearme-documentation.git","clone_url":"https://github.com/mdyd-dev/nearme-documentation.git","svn_url":"https://github.com/mdyd-dev/nearme-documentation","homepage":null,"size":5986,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":2,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"mdyd-dev:master","ref":"master","sha":"865ec461d39b455a2cbdc1c3a5c75f4f8c936a7d","user":{"login":"mdyd-dev","id":1442324,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDIzMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1442324?v=4","gravatar_id":"","url":"https://api.github.com/users/mdyd-dev","html_url":"https://github.com/mdyd-dev","followers_url":"https://api.github.com/users/mdyd-dev/followers","following_url":"https://api.github.com/users/mdyd-dev/following{/other_user}","gists_url":"https://api.github.com/users/mdyd-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mdyd-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdyd-dev/subscriptions","organizations_url":"https://api.github.com/users/mdyd-dev/orgs","repos_url":"https://api.github.com/users/mdyd-dev/repos","events_url":"https://api.github.com/users/mdyd-dev/events{/privacy}","received_events_url":"https://api.github.com/users/mdyd-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":131636695,"node_id":"MDEwOlJlcG9zaXRvcnkxMzE2MzY2OTU=","name":"nearme-documentation","full_name":"mdyd-dev/nearme-documentation","owner":{"login":"mdyd-dev","id":1442324,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0NDIzMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1442324?v=4","gravatar_id":"","url":"https://api.github.com/users/mdyd-dev","html_url":"https://github.com/mdyd-dev","followers_url":"https://api.github.com/users/mdyd-dev/followers","following_url":"https://api.github.com/users/mdyd-dev/following{/other_user}","gists_url":"https://api.github.com/users/mdyd-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mdyd-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdyd-dev/subscriptions","organizations_url":"https://api.github.com/users/mdyd-dev/orgs","repos_url":"https://api.github.com/users/mdyd-dev/repos","events_url":"https://api.github.com/users/mdyd-dev/events{/privacy}","received_events_url":"https://api.github.com/users/mdyd-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mdyd-dev/nearme-documentation","description":null,"fork":false,"url":"https://api.github.com/repos/mdyd-dev/nearme-documentation","forks_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/forks","keys_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/teams","hooks_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/hooks","issue_events_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/events","assignees_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/tags","blobs_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/languages","stargazers_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/stargazers","contributors_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/contributors","subscribers_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/subscribers","subscription_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/subscription","commits_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/merges","archive_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/downloads","issues_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/labels{/name}","releases_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/mdyd-dev/nearme-documentation/deployments","created_at":"2018-04-30T19:17:06Z","updated_at":"2018-06-11T11:27:21Z","pushed_at":"2018-06-11T11:27:18Z","git_url":"git://github.com/mdyd-dev/nearme-documentation.git","ssh_url":"git@github.com:mdyd-dev/nearme-documentation.git","clone_url":"https://github.com/mdyd-dev/nearme-documentation.git","svn_url":"https://github.com/mdyd-dev/nearme-documentation","homepage":null,"size":5986,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":2,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102"},"html":{"href":"https://github.com/mdyd-dev/nearme-documentation/pull/102"},"issue":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/102"},"comments":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/mdyd-dev/nearme-documentation/statuses/6f34b8d64afed217f9e6cfd34550ec1bb2419297"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"pavelloz"}}