{"action":"created","issue":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/470","repository_url":"https://api.github.com/repos/c2corg/v6_api","labels_url":"https://api.github.com/repos/c2corg/v6_api/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_api/issues/470/comments","events_url":"https://api.github.com/repos/c2corg/v6_api/issues/470/events","html_url":"https://github.com/c2corg/v6_api/pull/470","id":187329960,"number":470,"title":"Views for sitemaps","user":{"login":"tsauerwein","id":266474,"avatar_url":"https://avatars.githubusercontent.com/u/266474?v=3","gravatar_id":"","url":"https://api.github.com/users/tsauerwein","html_url":"https://github.com/tsauerwein","followers_url":"https://api.github.com/users/tsauerwein/followers","following_url":"https://api.github.com/users/tsauerwein/following{/other_user}","gists_url":"https://api.github.com/users/tsauerwein/gists{/gist_id}","starred_url":"https://api.github.com/users/tsauerwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsauerwein/subscriptions","organizations_url":"https://api.github.com/users/tsauerwein/orgs","repos_url":"https://api.github.com/users/tsauerwein/repos","events_url":"https://api.github.com/users/tsauerwein/events{/privacy}","received_events_url":"https://api.github.com/users/tsauerwein/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T13:13:36Z","updated_at":"2016-11-04T13:35:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/c2corg/v6_api/pulls/470","html_url":"https://github.com/c2corg/v6_api/pull/470","diff_url":"https://github.com/c2corg/v6_api/pull/470.diff","patch_url":"https://github.com/c2corg/v6_api/pull/470.patch"},"body":"This PR adds web-services that are consumed by the UI server-side to generate sitemaps for SEO:\r\n\r\n* `/sitemaps` returns a list of URLs to request sitemap information for a document type (paginated). The web-service is used by the UI to generate a [sitemap index](http://www.sitemaps.org/protocol.html#index).\r\nFor example:\r\n```\r\n{\r\n\t\"sitemaps\": [{\r\n\t\t\t\t\"url\": \"/sitemaps/w/0\",\r\n\t\t\t\t\"i\": 0,\r\n\t\t\t\t\"doc_type\": \"w\"\r\n\t\t\t}, {\r\n\t\t\t\t\"url\": \"/sitemaps/i/0\",\r\n\t\t\t\t\"i\": 0,\r\n\t\t\t\t\"doc_type\": \"i\"\r\n\t\t\t}, {\r\n\t\t\t\t\"url\": \"/sitemaps/i/1\",\r\n\t\t\t\t\"i\": 1,\r\n\t\t\t\t\"doc_type\": \"i\"\r\n\t\t\t},\r\n```\r\n\r\n* `/sitemaps/{doc_type}/{i}` returns the information needed to generate a sitemap for a document type.\r\nFor example: `/sitemaps/w/0`\r\n```\r\n{\r\n\t\"pages\": [{\r\n\t\t\"lastmod\": \"2016-10-28T11:07:39.540612\",\r\n\t\t\"document_id\": 37191,\r\n\t\t\"title\": \"Patraflon\",\r\n\t\t\"lang\": \"fr\"\r\n\t}, {\r\n\t\t\"lastmod\": \"2016-10-28T11:07:39.540612\",\r\n\t\t\"document_id\": 37192,\r\n\t\t\"title\": \"Pointe de Tosse\",\r\n\t\t\"lang\": \"fr\"\r\n\t}, \r\n```\r\n\r\nThe sitemaps are cached for 1 day.\r\n\r\nCloses https://github.com/c2corg/v6_api/issues/205"},"comment":{"url":"https://api.github.com/repos/c2corg/v6_api/issues/comments/258432432","html_url":"https://github.com/c2corg/v6_api/pull/470#issuecomment-258432432","issue_url":"https://api.github.com/repos/c2corg/v6_api/issues/470","id":258432432,"user":{"login":"tsauerwein","id":266474,"avatar_url":"https://avatars.githubusercontent.com/u/266474?v=3","gravatar_id":"","url":"https://api.github.com/users/tsauerwein","html_url":"https://github.com/tsauerwein","followers_url":"https://api.github.com/users/tsauerwein/followers","following_url":"https://api.github.com/users/tsauerwein/following{/other_user}","gists_url":"https://api.github.com/users/tsauerwein/gists{/gist_id}","starred_url":"https://api.github.com/users/tsauerwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsauerwein/subscriptions","organizations_url":"https://api.github.com/users/tsauerwein/orgs","repos_url":"https://api.github.com/users/tsauerwein/repos","events_url":"https://api.github.com/users/tsauerwein/events{/privacy}","received_events_url":"https://api.github.com/users/tsauerwein/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T13:35:58Z","updated_at":"2016-11-04T13:35:58Z","body":"> Just curious: are the responses (with 50000 entries) big and long to generate?\r\n\r\nFor example `/sitemaps/o/0.xml` is ~9MB and took 3 seconds to download on my system (uncached)."}}
{"actor":{"display_login":"tsauerwein"}}