{"action":"created","comment":{"url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/comments/181380328","pull_request_review_id":112000487,"id":181380328,"diff_hunk":"@@ -0,0 +1,72 @@\n+/*\n+ * Copyright 2017 Lime - HighTech Solutions s.r.o.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package io.getlime.security.app.admin.controller;\n+\n+import io.getlime.security.app.admin.ApplicationConfiguration;\n+import io.getlime.security.app.admin.model.ServiceStatusResponse;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.boot.info.BuildProperties;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RequestMethod;\n+import org.springframework.web.bind.annotation.ResponseBody;\n+\n+import java.util.Date;\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+\n+/**\n+ * Class representing controller used for service and maintenance purpose.\n+ *\n+ * @author Roman Strobl, roman.strobl@lime-company.eu\n+ */\n+@Controller\n+@RequestMapping(value = \"/api/service\")","path":"powerauth-admin/src/main/java/io/getlime/security/app/admin/controller/ServiceController.java","position":38,"original_position":38,"commit_id":"c990560dfb66499e66b85a598e6968392e10a087","original_commit_id":"c990560dfb66499e66b85a598e6968392e10a087","user":{"login":"petrdvorak","id":516597,"avatar_url":"https://avatars0.githubusercontent.com/u/516597?v=4","gravatar_id":"","url":"https://api.github.com/users/petrdvorak","html_url":"https://github.com/petrdvorak","followers_url":"https://api.github.com/users/petrdvorak/followers","following_url":"https://api.github.com/users/petrdvorak/following{/other_user}","gists_url":"https://api.github.com/users/petrdvorak/gists{/gist_id}","starred_url":"https://api.github.com/users/petrdvorak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrdvorak/subscriptions","organizations_url":"https://api.github.com/users/petrdvorak/orgs","repos_url":"https://api.github.com/users/petrdvorak/repos","events_url":"https://api.github.com/users/petrdvorak/events{/privacy}","received_events_url":"https://api.github.com/users/petrdvorak/received_events","type":"User","site_admin":false},"body":"This endpoint will not be reachable in case LDAP authentication is enabled. We need to exclude the endpoint form Spring Security configuration.","created_at":"2018-04-13T13:03:03Z","updated_at":"2018-04-13T13:03:41Z","html_url":"https://github.com/lime-company/powerauth-admin/pull/37#discussion_r181380328","pull_request_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/comments/181380328"},"html":{"href":"https://github.com/lime-company/powerauth-admin/pull/37#discussion_r181380328"},"pull_request":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37","id":181238566,"html_url":"https://github.com/lime-company/powerauth-admin/pull/37","diff_url":"https://github.com/lime-company/powerauth-admin/pull/37.diff","patch_url":"https://github.com/lime-company/powerauth-admin/pull/37.patch","issue_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/37","number":37,"state":"open","locked":false,"title":"Fix #33: Add service status endpoint","user":{"login":"romanstrobl","id":26658588,"avatar_url":"https://avatars2.githubusercontent.com/u/26658588?v=4","gravatar_id":"","url":"https://api.github.com/users/romanstrobl","html_url":"https://github.com/romanstrobl","followers_url":"https://api.github.com/users/romanstrobl/followers","following_url":"https://api.github.com/users/romanstrobl/following{/other_user}","gists_url":"https://api.github.com/users/romanstrobl/gists{/gist_id}","starred_url":"https://api.github.com/users/romanstrobl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanstrobl/subscriptions","organizations_url":"https://api.github.com/users/romanstrobl/orgs","repos_url":"https://api.github.com/users/romanstrobl/repos","events_url":"https://api.github.com/users/romanstrobl/events{/privacy}","received_events_url":"https://api.github.com/users/romanstrobl/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-12T15:18:18Z","updated_at":"2018-04-13T13:03:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9264d1e7ee70383c07961e2647589ebcf01ce71","assignee":{"login":"romanstrobl","id":26658588,"avatar_url":"https://avatars2.githubusercontent.com/u/26658588?v=4","gravatar_id":"","url":"https://api.github.com/users/romanstrobl","html_url":"https://github.com/romanstrobl","followers_url":"https://api.github.com/users/romanstrobl/followers","following_url":"https://api.github.com/users/romanstrobl/following{/other_user}","gists_url":"https://api.github.com/users/romanstrobl/gists{/gist_id}","starred_url":"https://api.github.com/users/romanstrobl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanstrobl/subscriptions","organizations_url":"https://api.github.com/users/romanstrobl/orgs","repos_url":"https://api.github.com/users/romanstrobl/repos","events_url":"https://api.github.com/users/romanstrobl/events{/privacy}","received_events_url":"https://api.github.com/users/romanstrobl/received_events","type":"User","site_admin":false},"assignees":[{"login":"romanstrobl","id":26658588,"avatar_url":"https://avatars2.githubusercontent.com/u/26658588?v=4","gravatar_id":"","url":"https://api.github.com/users/romanstrobl","html_url":"https://github.com/romanstrobl","followers_url":"https://api.github.com/users/romanstrobl/followers","following_url":"https://api.github.com/users/romanstrobl/following{/other_user}","gists_url":"https://api.github.com/users/romanstrobl/gists{/gist_id}","starred_url":"https://api.github.com/users/romanstrobl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanstrobl/subscriptions","organizations_url":"https://api.github.com/users/romanstrobl/orgs","repos_url":"https://api.github.com/users/romanstrobl/repos","events_url":"https://api.github.com/users/romanstrobl/events{/privacy}","received_events_url":"https://api.github.com/users/romanstrobl/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":499167423,"url":"https://api.github.com/repos/lime-company/powerauth-admin/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37/commits","review_comments_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37/comments","review_comment_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/37/comments","statuses_url":"https://api.github.com/repos/lime-company/powerauth-admin/statuses/c990560dfb66499e66b85a598e6968392e10a087","head":{"label":"lime-company:issues/33-add-service-status-endpoint","ref":"issues/33-add-service-status-endpoint","sha":"c990560dfb66499e66b85a598e6968392e10a087","user":{"login":"lime-company","id":10101099,"avatar_url":"https://avatars2.githubusercontent.com/u/10101099?v=4","gravatar_id":"","url":"https://api.github.com/users/lime-company","html_url":"https://github.com/lime-company","followers_url":"https://api.github.com/users/lime-company/followers","following_url":"https://api.github.com/users/lime-company/following{/other_user}","gists_url":"https://api.github.com/users/lime-company/gists{/gist_id}","starred_url":"https://api.github.com/users/lime-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lime-company/subscriptions","organizations_url":"https://api.github.com/users/lime-company/orgs","repos_url":"https://api.github.com/users/lime-company/repos","events_url":"https://api.github.com/users/lime-company/events{/privacy}","received_events_url":"https://api.github.com/users/lime-company/received_events","type":"Organization","site_admin":false},"repo":{"id":76247061,"name":"powerauth-admin","full_name":"lime-company/powerauth-admin","owner":{"login":"lime-company","id":10101099,"avatar_url":"https://avatars2.githubusercontent.com/u/10101099?v=4","gravatar_id":"","url":"https://api.github.com/users/lime-company","html_url":"https://github.com/lime-company","followers_url":"https://api.github.com/users/lime-company/followers","following_url":"https://api.github.com/users/lime-company/following{/other_user}","gists_url":"https://api.github.com/users/lime-company/gists{/gist_id}","starred_url":"https://api.github.com/users/lime-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lime-company/subscriptions","organizations_url":"https://api.github.com/users/lime-company/orgs","repos_url":"https://api.github.com/users/lime-company/repos","events_url":"https://api.github.com/users/lime-company/events{/privacy}","received_events_url":"https://api.github.com/users/lime-company/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lime-company/powerauth-admin","description":"PowerAuth 2.0 Admin - Admin console for PowerAuth 2.0 Server","fork":false,"url":"https://api.github.com/repos/lime-company/powerauth-admin","forks_url":"https://api.github.com/repos/lime-company/powerauth-admin/forks","keys_url":"https://api.github.com/repos/lime-company/powerauth-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lime-company/powerauth-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lime-company/powerauth-admin/teams","hooks_url":"https://api.github.com/repos/lime-company/powerauth-admin/hooks","issue_events_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/events{/number}","events_url":"https://api.github.com/repos/lime-company/powerauth-admin/events","assignees_url":"https://api.github.com/repos/lime-company/powerauth-admin/assignees{/user}","branches_url":"https://api.github.com/repos/lime-company/powerauth-admin/branches{/branch}","tags_url":"https://api.github.com/repos/lime-company/powerauth-admin/tags","blobs_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lime-company/powerauth-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/lime-company/powerauth-admin/languages","stargazers_url":"https://api.github.com/repos/lime-company/powerauth-admin/stargazers","contributors_url":"https://api.github.com/repos/lime-company/powerauth-admin/contributors","subscribers_url":"https://api.github.com/repos/lime-company/powerauth-admin/subscribers","subscription_url":"https://api.github.com/repos/lime-company/powerauth-admin/subscription","commits_url":"https://api.github.com/repos/lime-company/powerauth-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/lime-company/powerauth-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/lime-company/powerauth-admin/contents/{+path}","compare_url":"https://api.github.com/repos/lime-company/powerauth-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lime-company/powerauth-admin/merges","archive_url":"https://api.github.com/repos/lime-company/powerauth-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lime-company/powerauth-admin/downloads","issues_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues{/number}","pulls_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/lime-company/powerauth-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/lime-company/powerauth-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lime-company/powerauth-admin/labels{/name}","releases_url":"https://api.github.com/repos/lime-company/powerauth-admin/releases{/id}","deployments_url":"https://api.github.com/repos/lime-company/powerauth-admin/deployments","created_at":"2016-12-12T10:40:36Z","updated_at":"2018-04-04T16:03:57Z","pushed_at":"2018-04-12T15:18:18Z","git_url":"git://github.com/lime-company/powerauth-admin.git","ssh_url":"git@github.com:lime-company/powerauth-admin.git","clone_url":"https://github.com/lime-company/powerauth-admin.git","svn_url":"https://github.com/lime-company/powerauth-admin","homepage":null,"size":964,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"develop"}},"base":{"label":"lime-company:develop","ref":"develop","sha":"b304881cab23b04661036c3f7d92da16bdc0c74a","user":{"login":"lime-company","id":10101099,"avatar_url":"https://avatars2.githubusercontent.com/u/10101099?v=4","gravatar_id":"","url":"https://api.github.com/users/lime-company","html_url":"https://github.com/lime-company","followers_url":"https://api.github.com/users/lime-company/followers","following_url":"https://api.github.com/users/lime-company/following{/other_user}","gists_url":"https://api.github.com/users/lime-company/gists{/gist_id}","starred_url":"https://api.github.com/users/lime-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lime-company/subscriptions","organizations_url":"https://api.github.com/users/lime-company/orgs","repos_url":"https://api.github.com/users/lime-company/repos","events_url":"https://api.github.com/users/lime-company/events{/privacy}","received_events_url":"https://api.github.com/users/lime-company/received_events","type":"Organization","site_admin":false},"repo":{"id":76247061,"name":"powerauth-admin","full_name":"lime-company/powerauth-admin","owner":{"login":"lime-company","id":10101099,"avatar_url":"https://avatars2.githubusercontent.com/u/10101099?v=4","gravatar_id":"","url":"https://api.github.com/users/lime-company","html_url":"https://github.com/lime-company","followers_url":"https://api.github.com/users/lime-company/followers","following_url":"https://api.github.com/users/lime-company/following{/other_user}","gists_url":"https://api.github.com/users/lime-company/gists{/gist_id}","starred_url":"https://api.github.com/users/lime-company/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lime-company/subscriptions","organizations_url":"https://api.github.com/users/lime-company/orgs","repos_url":"https://api.github.com/users/lime-company/repos","events_url":"https://api.github.com/users/lime-company/events{/privacy}","received_events_url":"https://api.github.com/users/lime-company/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lime-company/powerauth-admin","description":"PowerAuth 2.0 Admin - Admin console for PowerAuth 2.0 Server","fork":false,"url":"https://api.github.com/repos/lime-company/powerauth-admin","forks_url":"https://api.github.com/repos/lime-company/powerauth-admin/forks","keys_url":"https://api.github.com/repos/lime-company/powerauth-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lime-company/powerauth-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lime-company/powerauth-admin/teams","hooks_url":"https://api.github.com/repos/lime-company/powerauth-admin/hooks","issue_events_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/events{/number}","events_url":"https://api.github.com/repos/lime-company/powerauth-admin/events","assignees_url":"https://api.github.com/repos/lime-company/powerauth-admin/assignees{/user}","branches_url":"https://api.github.com/repos/lime-company/powerauth-admin/branches{/branch}","tags_url":"https://api.github.com/repos/lime-company/powerauth-admin/tags","blobs_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lime-company/powerauth-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/lime-company/powerauth-admin/languages","stargazers_url":"https://api.github.com/repos/lime-company/powerauth-admin/stargazers","contributors_url":"https://api.github.com/repos/lime-company/powerauth-admin/contributors","subscribers_url":"https://api.github.com/repos/lime-company/powerauth-admin/subscribers","subscription_url":"https://api.github.com/repos/lime-company/powerauth-admin/subscription","commits_url":"https://api.github.com/repos/lime-company/powerauth-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/lime-company/powerauth-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/lime-company/powerauth-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/lime-company/powerauth-admin/contents/{+path}","compare_url":"https://api.github.com/repos/lime-company/powerauth-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lime-company/powerauth-admin/merges","archive_url":"https://api.github.com/repos/lime-company/powerauth-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lime-company/powerauth-admin/downloads","issues_url":"https://api.github.com/repos/lime-company/powerauth-admin/issues{/number}","pulls_url":"https://api.github.com/repos/lime-company/powerauth-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/lime-company/powerauth-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/lime-company/powerauth-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lime-company/powerauth-admin/labels{/name}","releases_url":"https://api.github.com/repos/lime-company/powerauth-admin/releases{/id}","deployments_url":"https://api.github.com/repos/lime-company/powerauth-admin/deployments","created_at":"2016-12-12T10:40:36Z","updated_at":"2018-04-04T16:03:57Z","pushed_at":"2018-04-12T15:18:18Z","git_url":"git://github.com/lime-company/powerauth-admin.git","ssh_url":"git@github.com:lime-company/powerauth-admin.git","clone_url":"https://github.com/lime-company/powerauth-admin.git","svn_url":"https://github.com/lime-company/powerauth-admin","homepage":null,"size":964,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":5,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37"},"html":{"href":"https://github.com/lime-company/powerauth-admin/pull/37"},"issue":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/issues/37"},"comments":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/lime-company/powerauth-admin/statuses/c990560dfb66499e66b85a598e6968392e10a087"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"petrdvorak"}}