91 lines
1.7 KiB
YAML
91 lines
1.7 KiB
YAML
|
|
info:
|
||
|
|
name: Create Generation Job
|
||
|
|
type: http
|
||
|
|
seq: 1
|
||
|
|
tags:
|
||
|
|
- generation
|
||
|
|
|
||
|
|
http:
|
||
|
|
method: POST
|
||
|
|
url: "{{baseUrl}}/generate"
|
||
|
|
body:
|
||
|
|
type: json
|
||
|
|
data: |-
|
||
|
|
{
|
||
|
|
"target_language": "",
|
||
|
|
"complexity_level": "",
|
||
|
|
"input_texts": [],
|
||
|
|
"topic": ""
|
||
|
|
}
|
||
|
|
auth:
|
||
|
|
type: bearer
|
||
|
|
token: "{{token}}"
|
||
|
|
|
||
|
|
settings:
|
||
|
|
encodeUrl: true
|
||
|
|
timeout: 0
|
||
|
|
followRedirects: true
|
||
|
|
maxRedirects: 5
|
||
|
|
|
||
|
|
examples:
|
||
|
|
- name: 202 Response
|
||
|
|
description: Successful Response
|
||
|
|
request:
|
||
|
|
url: "{{baseUrl}}/generate"
|
||
|
|
method: POST
|
||
|
|
body:
|
||
|
|
type: json
|
||
|
|
data: |-
|
||
|
|
{
|
||
|
|
"target_language": "",
|
||
|
|
"complexity_level": "",
|
||
|
|
"input_texts": [],
|
||
|
|
"topic": ""
|
||
|
|
}
|
||
|
|
response:
|
||
|
|
status: 202
|
||
|
|
statusText: Accepted
|
||
|
|
headers:
|
||
|
|
- name: Content-Type
|
||
|
|
value: application/json
|
||
|
|
body:
|
||
|
|
type: json
|
||
|
|
data: |-
|
||
|
|
{
|
||
|
|
"job_id": ""
|
||
|
|
}
|
||
|
|
- name: 422 Response
|
||
|
|
description: Validation Error
|
||
|
|
request:
|
||
|
|
url: "{{baseUrl}}/generate"
|
||
|
|
method: POST
|
||
|
|
body:
|
||
|
|
type: json
|
||
|
|
data: |-
|
||
|
|
{
|
||
|
|
"target_language": "",
|
||
|
|
"complexity_level": "",
|
||
|
|
"input_texts": [],
|
||
|
|
"topic": ""
|
||
|
|
}
|
||
|
|
response:
|
||
|
|
status: 422
|
||
|
|
statusText: Unprocessable Entity
|
||
|
|
headers:
|
||
|
|
- name: Content-Type
|
||
|
|
value: application/json
|
||
|
|
body:
|
||
|
|
type: json
|
||
|
|
data: |-
|
||
|
|
{
|
||
|
|
"detail": [
|
||
|
|
{
|
||
|
|
"loc": [],
|
||
|
|
"msg": "",
|
||
|
|
"type": "",
|
||
|
|
"input": "",
|
||
|
|
"ctx": {}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|