aboutsummaryrefslogtreecommitdiff
path: root/tests/http.yaml
blob: 45aa2bbea3a313e7bc3957c04cbf9d42f3b29f7c (plain) (blame)
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
---
http:
  http://0.0.0.0:8010/v2/info:
    status: 200
    url: http://0.0.0.0:8010/v2/info
    no-follow-redirects: true
    timeout: 10000
    method: GET
    body:
      - '{"software":{"name":"LanguageTool"'

  http://0.0.0.0:8010/v2/languages:
    status: 200
    url: http://0.0.0.0:8010/v2/languages
    no-follow-redirects: true
    timeout: 10000
    method: GET
    request-headers:
      - "accept: application/json"
    body:
      - '{"name":"Arabic","code":"ar","longCode":"ar"}'

  http://0.0.0.0:8010/v2/check:
    status: 200
    url: http://0.0.0.0:8010/v2/check
    no-follow-redirects: true
    timeout: 10000
    method: POST
    request-headers:
      - "accept: application/json"
      - "content-type: application/x-www-form-urlencoded"
    request-body: 'text=hello%20woorld&language=en-US&motherTongue=de-DE&enabledOnly=false'
    body:
      - This sentence does not start with an uppercase letter