File: test_spell_check.yaml

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
file content (41 lines) | stat: -rw-r--r-- 1,819 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
interactions:
- request:
    body: Text=cognituve+services
    headers:
      Accept: [application/json]
      Accept-Encoding: ['gzip, deflate']
      Connection: [keep-alive]
      Content-Length: ['23']
      Content-Type: [application/x-www-form-urlencoded]
      User-Agent: [python/3.6.2 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.18
          spellcheckclient/1.0]
      X-BingApis-SDK: ['true']
      X-BingApis-SDK-Client: [Python-SDK]
    method: POST
    uri: https://api.cognitive.microsoft.com/bing/v7.0/spellcheck
  response:
    body: {string: '{"_type": "SpellCheck", "flaggedTokens": [{"_type": "Spelling\/FlaggedToken",
        "offset": 0, "token": "cognituve", "type": "UnknownToken", "suggestions":
        [{"_type": "Spelling\/TokenSuggestion", "suggestion": "cognitive", "score":
        0.915075214584365}]}]}'}
    headers:
      apim-request-id: [c4d7b44b-f972-4ec7-bcdc-0dd019b2acbe]
      bingapis-market: [en-US]
      bingapis-sessionid: [84009F6285D1484086085CD9FD732E90]
      bingapis-traceid: [2CF1E3DE37A04721A0ADA6B35CF9E1E8]
      cache-control: ['private, max-age=0']
      content-length: ['250']
      content-type: [application/json; charset=utf-8]
      date: ['Mon, 20 Nov 2017 20:55:38 GMT']
      expires: ['Mon, 20 Nov 2017 20:54:37 GMT']
      p3p: [CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND"]
      server: [Microsoft-HTTPAPI/2.0]
      strict-transport-security: [max-age=31536000; includeSubDomains; preload]
      vary: [Accept-Encoding]
      x-content-type-options: [nosniff]
      x-msapi-userstate: ['3351']
      x-msedge-clientid: [1C7E931A81676C502F9B985A80F06DB7]
      x-msedge-ref: ['Ref A: 2CF1E3DE37A04721A0ADA6B35CF9E1E8 Ref B: CO1EDGE0306 Ref
          C: 2017-11-20T20:55:37Z']
    status: {code: 200, message: OK}
version: 1