Skip to content

Commit 72c6c99

Browse files
authored
Merge pull request #96885 from diberry/diberry/1121-qna-fresh-postman
[Cogsvcs] QnA Maker - qs - postman - curl
2 parents 64d3b72 + 48ff1fa commit 72c6c99

11 files changed

+77
-49
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,16 @@
532532
"redirect_url": "/azure/machine-learning",
533533
"redirect_document_id": false
534534
},
535+
{
536+
"source_path": "articles/cognitive-services/QnAMaker/Quickstarts/get-answer-from-kb-using-postman.md",
537+
"redirect_url": "/azure/cognitive-services//QnAMaker/Quickstarts/get-answer-from-knowledge-base-using-url-tool",
538+
"redirect_document_id": false
539+
},
540+
{
541+
"source_path": "articles/cognitive-services/QnAMaker/Quickstarts/get-answer-from-kb-using-curl.md",
542+
"redirect_url": "/azure/cognitive-services//QnAMaker/Quickstarts/get-answer-from-knowledge-base-using-url-tool",
543+
"redirect_document_id": false
544+
},
535545
{
536546
"source_path": "articles/cognitive-services/LUIS/luis-how-to-add-example-utterances.md",
537547
"redirect_url": "/azure/cognitive-services/LUIS/luis-how-to-add-entities",

articles/cognitive-services/QnAMaker/How-To/metadata-generateanswer-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: conceptual
11-
ms.date: 10/12/2019
11+
ms.date: 11/22/2019
1212
ms.author: diberry
1313
---
1414

@@ -252,7 +252,7 @@ You can search through the published kb, using `isTest=false`, or in the test kb
252252

253253
## Next steps
254254

255-
The **Publish** page also provides information to generate an answer with [Postman](../Quickstarts/get-answer-from-kb-using-postman.md) and [cURL](../Quickstarts/get-answer-from-kb-using-curl.md).
255+
The **Publish** page also provides information to [generate an answer](../Quickstarts/get-answer-from-knowledge-base-using-url-tool.md) with Postman or cURL.
256256

257257
> [!div class="nextstepaction"]
258258
> [Create a knowledge base bot](../tutorials/integrate-qnamaker-luis.md)

articles/cognitive-services/QnAMaker/Overview/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: overview
11-
ms.date: 08/01/2019
11+
ms.date: 11/22/2019
1212
ms.author: diberry
1313
#customer intent: As a developer, I want to know how to use QnA Maker for my FAQs and product manuals so that I can enable conversational question and answer sessions for my customers.
1414
---
@@ -77,7 +77,7 @@ QnA Maker provides authoring, training, and publishing along with collaboration
7777

7878
**Step 2**: Create a knowledge base in the [QnA Maker](https://www.qnamaker.ai) portal. Add [files and URLs](../concepts/data-sources-supported.md) to create the knowledge base.
7979

80-
**Step 3**: Publish your knowledge base and test from your custom endpoint using [cURL](../quickstarts/get-answer-from-kb-using-curl.md) or [Postman](../quickstarts/get-answer-from-kb-using-postman.md).
80+
**Step 3**: Publish your knowledge base and test from your custom endpoint using [cURL or Postman](../Quickstarts/get-answer-from-knowledge-base-using-url-tool.md).
8181

8282
**Step 4**: From your client application, programmatically call your knowledge base's endpoint and read the JSON response show the best answer to the user.
8383

articles/cognitive-services/QnAMaker/Quickstarts/add-question-metadata-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: qna-maker
1010
ms.topic: quickstart
11-
ms.date: 10/01/2019
11+
ms.date: 11/22/2019
1212
ms.author: diberry
1313
---
1414

@@ -171,4 +171,4 @@ If you want to clean up and remove a Cognitive Services subscription, you can de
171171
## Next steps
172172
173173
> [!div class="nextstepaction"]
174-
> [Get answer with Postman](get-answer-from-kb-using-postman.md)
174+
> [Get answer with Postman or cURL](get-answer-from-knowledge-base-using-url-tool.md)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "Quickstart: Use URL tool to get answer from knowledge base - QnA Maker"
3+
titleSuffix: Azure Cognitive Services
4+
description: This quickstart walks you through getting an answer from your knowledge base using a URL test tool such as cURL or Postman.
5+
services: cognitive-services
6+
author: diberry
7+
manager: nitinme
8+
ms.service: cognitive-services
9+
ms.subservice: qna-maker
10+
zone_pivot_groups: URL-test-interface
11+
ms.topic: quickstart
12+
ms.date: 11/21/2019
13+
ms.author: diberry
14+
#Customer intent: As an knowledge base manager new to the QnA Maker service, I want to get an answer from a published knowledge base using a URL tool such as Postman or cURL.
15+
---
16+
17+
# Quickstart: Get an answer from knowledge base
18+
19+
::: zone pivot="url-test-tool-curl"
20+
21+
[!INCLUDE [Get answer using cURL](../includes/quickstart-test-tool-curl.md)]
22+
23+
::: zone-end
24+
25+
::: zone pivot="url-test-tool-postman"
26+
27+
[!INCLUDE [Get answer using Postman](../includes/quickstart-test-tool-Postman.md)]
28+
29+
::: zone-end
30+
31+
## Next steps
32+
33+
> [!div class="nextstepaction"]
34+
> [Use metadata while generating an answer](create-new-kb-csharp.md)

articles/cognitive-services/QnAMaker/Quickstarts/get-answer-from-kb-using-curl.md renamed to articles/cognitive-services/QnAMaker/includes/quickstart-test-tool-curl.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
---
2-
title: "Quickstart: Use cURL to get answer from knowledge base - QnA Maker"
3-
titleSuffix: Azure Cognitive Services
4-
description: This quickstart walks you through getting an answer from your knowledge base using cURL.
2+
title: include file
3+
description: include file
54
services: cognitive-services
65
author: diberry
76
manager: nitinme
87
ms.service: cognitive-services
9-
ms.subservice: qna-maker
10-
ms.topic: quickstart
11-
ms.date: 10/01/2019
8+
ms.subservice: luis
9+
ms.topic: include
10+
ms.custom: include file
11+
ms.date: 11/20/2019
1212
ms.author: diberry
1313
---
1414

15-
# Quickstart: Get answer from knowledge base using cURL
16-
1715
This cURL-based quickstart walks you through getting an answer from your knowledge base.
1816

1917
## Prerequisites
@@ -70,9 +68,4 @@ If you want to get an answer from the staging endpoint, use the `isTest` body pr
7068
isTest:true
7169
```
7270

73-
## Next steps
74-
75-
The publish page also provides information to [generate an answer](get-answer-from-kb-using-postman.md) with Postman.
7671

77-
> [!div class="nextstepaction"]
78-
> [Use metadata while generating an answer](../How-to/metadata-generateanswer-usage.md)

articles/cognitive-services/QnAMaker/Quickstarts/get-answer-from-kb-using-postman.md renamed to articles/cognitive-services/QnAMaker/includes/quickstart-test-tool-postman.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
---
2-
title: "Quickstart: Use Postman to get answer from knowledge base - QnA Maker"
3-
titleSuffix: Azure Cognitive Services
4-
description: This quickstart walks you through getting an answer from your knowledge base using Postman.
2+
title: include file
3+
description: include file
54
services: cognitive-services
65
author: diberry
76
manager: nitinme
8-
97
ms.service: cognitive-services
10-
ms.subservice: qna-maker
11-
ms.topic: quickstart
12-
ms.date: 01/01/2019
8+
ms.subservice: luis
9+
ms.topic: include
10+
ms.custom: include file
11+
ms.date: 11/20/2019
1312
ms.author: diberry
14-
#Customer intent: As an knowledge base manager new to the QnA Maker service, I want to get an answer from a published knowledge base using Postman.
1513
---
1614

17-
# Quickstart: Get an answer from knowledge base using Postman
18-
1915
This Postman-based quickstart walks you through getting an answer from your knowledge base.
2016

2117
## Prerequisites
@@ -69,10 +65,3 @@ To generate an answer with Postman, complete the following steps:
6965
## Use staging endpoint
7066

7167
If you want to get an answer from the staging endpoint, append the URL with the `isTest` body property.
72-
73-
## Next steps
74-
75-
The publish page also provides information to [generate an answer](get-answer-from-kb-using-curl.md) with cURL.
76-
77-
> [!div class="nextstepaction"]
78-
> [Use metadata while generating an answer](../How-to/metadata-generateanswer-usage.md)

articles/cognitive-services/QnAMaker/index.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ landingContent:
6464
linkLists:
6565
- linkListType: get-started
6666
links:
67-
- text: "Quickstart: Using Postman"
68-
url: quickstarts/get-answer-from-kb-using-postman.md
69-
- text: "Quickstart: Using cURL"
70-
url: quickstarts/get-answer-from-kb-using-curl.md
67+
- text: "Quickstart: With Postman or cURL"
68+
url: quickstarts/get-answer-from-knowledge-base-using-url-tool.md
7169
- text: "Quickstart: Using REST and C#"
7270
url: quickstarts/get-answer-from-knowledge-base-csharp.md
7371
- text: "Quickstart: Using NuGet and C#"

articles/cognitive-services/QnAMaker/toc.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
href: quickstarts/create-publish-knowledge-base.md
1313
- name: Add questions with metadata
1414
href: quickstarts/add-question-metadata-portal.md
15-
- name: Get answer
16-
items:
17-
- name: Using Postman
18-
href: Quickstarts/get-answer-from-kb-using-postman.md
19-
- name: Using cURL
20-
href: Quickstarts/get-answer-from-kb-using-cURL.md
15+
- name: Get answer with Postman or cURL
16+
href: Quickstarts/get-answer-from-knowledge-base-using-url-tool.md
2117
- name: Using REST APIs
2218
items:
2319
- name: Create a new knowledge base

articles/cognitive-services/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: erhopf
77
manager: nitinme
88
ms.service: cognitive-services
99
ms.topic: conceptual
10-
ms.date: 07/24/2019
10+
ms.date: 11/22/2019
1111
ms.author: erhopf
1212
---
1313

@@ -114,7 +114,7 @@ Some Azure Cognitive Services accept, and in some cases require, an authenticati
114114
* Speech Services: Text-to-speech REST API
115115

116116
>[!NOTE]
117-
> QnA Maker also uses the Authorization header, but requires an endpoint key. For more information, see [QnA Maker: Get answer from knowledge base](./qnamaker/quickstarts/get-answer-from-kb-using-curl.md).
117+
> QnA Maker also uses the Authorization header, but requires an endpoint key. For more information, see [QnA Maker: Get answer from knowledge base](./qnamaker/quickstarts/get-answer-from-knowledge-base-using-url-tool.md).
118118
119119
>[!WARNING]
120120
> The services that support authentication tokens may change over time, please check the API reference for a service before using this authentication method.

0 commit comments

Comments
 (0)