# Запрос sitemap.xml

Возвращает список документов и файл sitemap.xml для указанного кластера. Файл рекомендуется добавить на ваш сервис в robots.txt, чтобы помочь большому поиску быстрее обновить адреса.

# Формат запроса

GET ./
documents
sitemap

#

# Формат ответа

{ "documents":[ { "url":{string}, "details":{ "path":{string}, "projectAlias":{string}, "project":{string}, "lang":{string} } }, { ... } ], "sitemap":{string} }

# Коды ответа

Код | Причина | Описание
--- | --- | ---

# Пример

Запрос:

curl -i -X GET http://kassa.daas-backend.yandex.net/v1/documents/sitemap?tld=ru -H 'Content-Type: application/json'

Ответ:

HTTP/1.1 200 OK Server: nginx Date: Fri, 21 Dec 2018 13:06:42 GMT Content-Type: application/json X-Protobuf-Message: SitemapResponse

{ "documents":[ { "url":"https://kassa.yandex.ru/help/payouts.html", "details":{ "path":"/help/payouts.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/merchant/users.html?lang=en", "details":{ "path":"/help/merchant/users.html", "projectAlias":"help", "project":"checkout", "lang":"en" } }, { "url":"https://kassa.yandex.ru/help/payments/mpos-p17.html", "details":{ "path":"/help/payments/mpos-p17.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/instructions/cards.html", "details":{ "path":"/help/instructions/cards.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/payments/http-protocol.html?lang=en", "details":{ "path":"/help/payments/http-protocol.html", "projectAlias":"help", "project":"checkout", "lang":"en" } }, { "url":"https://kassa.yandex.ru/help/payments/pre-auth.html", "details":{ "path":"/help/payments/pre-auth.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/merchant/payout-setups.html", "details":{ "path":"/help/merchant/payout-setups.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/payouts.html?lang=en", "details":{ "path":"/help/payouts.html", "projectAlias":"help", "project":"checkout", "lang":"en" } }, { "url":"https://kassa.yandex.ru/help/payments/onboarding.html?lang=en", "details":{ "path":"/help/payments/onboarding.html", "projectAlias":"help", "project":"checkout", "lang":"en" } }, { "url":"https://kassa.yandex.ru/help/payments/qr-payment.html?lang=en", "details":{ "path":"/help/payments/qr-payment.html", "projectAlias":"help", "project":"checkout", "lang":"en" } }, { "url":"https://kassa.yandex.ru/help/instructions/prestashop.html", "details":{ "path":"/help/instructions/prestashop.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/payments/instructions.html", "details":{ "path":"/help/payments/instructions.html", "projectAlias":"help", "project":"checkout" } }, { "url":"https://kassa.yandex.ru/help/payments/refunding.html", "details":{ "path":"/help/payments/refunding.html", "projectAlias":"help", "project":"checkout" } } ... ], "sitemap":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:news=\"http://www.google.com/schemas/sitemap-news/0.9\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" xmlns:mobile=\"http://www.google.com/schemas/sitemap-mobile/1.0\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" xmlns:video=\"http://www.google.com/schemas/sitemap-video/1.1\"><url><loc>https://kassa.yandex.ru/help/payouts.html</loc></url><url><loc>https://kassa.yandex.ru/help/merchant/users.html?lang=en</loc></url><url><loc>https://kassa.yandex.ru/help/payments/mpos-p17.html</loc></url><url><loc>https://kassa.yandex.ru/help/instructions/cards.html</loc></url><url><loc>https://kassa.yandex.ru/help/payments/http-protocol.html?lang=en</loc></url><url><loc>https://kassa.yandex.ru/help/payments/pre-auth.html</loc></url> ... <url><loc>https://kassa.yandex.ru/tech/payout/card-order.html</loc></url><url><loc>https://kassa.yandex.ru/tech/payout/testing.html</loc></url></urlset>" }