Slide 17
Slide 17 text
search_documentation:リモートサービスに検索 17
$ curl -X POST https://proxy.search.docs.aws.amazon.com/search \
-H "Content-Type: application/json" -d '{
"textQuery": { "input": "S3 bucket naming rules" },
"contextAttributes": [{
"key": "domain", "value": "docs.aws.amazon.com"
}],
"acceptSuggestionBody": "RawText", "locales": ["en_us"]}'
{
"queryId": "40dd0cc1-4e0f-42af-9385-a1878fe3cbb5",
"suggestions": [
{
"textExcerptSuggestion": {
"link": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html",
"title": "Amazon S3 table bucket, table, and namespace naming rules - Amazon Simple Storage Service",
"suggestionBody": "For general purpose bucket naming rules, see General purpose bucket naming rules...",
…
AWSのオフィシャルなドキュメント検索APIに無認証で検索しているだけ