99 lines
1.8 KiB
YAML
99 lines
1.8 KiB
YAML
info:
|
|
name: Analyze Pos
|
|
type: http
|
|
seq: 1
|
|
tags:
|
|
- analysis
|
|
|
|
http:
|
|
method: POST
|
|
url: "{{baseUrl}}/analyze/pos"
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"text": "This is a test",
|
|
"language": "en"
|
|
}
|
|
auth:
|
|
type: bearer
|
|
token: "{{token}}"
|
|
|
|
runtime:
|
|
variables:
|
|
- name: baseUrl
|
|
value: http://localhost:8000
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|
|
|
|
examples:
|
|
- name: 200 Response
|
|
description: Successful Response
|
|
request:
|
|
url: "{{baseUrl}}/analyze/pos"
|
|
method: POST
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"text": "",
|
|
"language": ""
|
|
}
|
|
response:
|
|
status: 200
|
|
statusText: OK
|
|
headers:
|
|
- name: Content-Type
|
|
value: application/json
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"language": "",
|
|
"tokens": [
|
|
{
|
|
"text": "",
|
|
"lemma": "",
|
|
"pos": "",
|
|
"tag": "",
|
|
"dep": "",
|
|
"is_stop": false
|
|
}
|
|
]
|
|
}
|
|
- name: 422 Response
|
|
description: Validation Error
|
|
request:
|
|
url: "{{baseUrl}}/analyze/pos"
|
|
method: POST
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"text": "",
|
|
"language": ""
|
|
}
|
|
response:
|
|
status: 422
|
|
statusText: Unprocessable Entity
|
|
headers:
|
|
- name: Content-Type
|
|
value: application/json
|
|
body:
|
|
type: json
|
|
data: |-
|
|
{
|
|
"detail": [
|
|
{
|
|
"loc": [],
|
|
"msg": "",
|
|
"type": "",
|
|
"input": "",
|
|
"ctx": {}
|
|
}
|
|
]
|
|
}
|