language-learning-app/Language Learning API/jobs/Get jobs.yml
2026-03-18 20:55:02 +00:00

82 lines
1.6 KiB
YAML

info:
name: Get jobs
type: http
seq: 2
tags:
- jobs
http:
method: GET
url: "{{baseUrl}}/jobs/:job_id"
params:
- name: job_id
value: d2130df6-cab2-4407-b35b-45e90dca8555
type: path
auth:
type: bearer
token: "{{token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
examples:
- name: 200 Response
description: Successful Response
request:
url: "{{baseUrl}}/jobs/:job_id"
method: GET
params:
- name: job_id
value: ""
type: path
response:
status: 200
statusText: OK
headers:
- name: Content-Type
value: application/json
body:
type: json
data: |-
{
"id": "",
"status": "",
"target_language": "",
"complexity_level": "",
"created_at": "",
"generated_text": "",
"input_summary": "",
"error_message": ""
}
- name: 422 Response
description: Validation Error
request:
url: "{{baseUrl}}/jobs/:job_id"
method: GET
params:
- name: job_id
value: ""
type: path
response:
status: 422
statusText: Unprocessable Entity
headers:
- name: Content-Type
value: application/json
body:
type: json
data: |-
{
"detail": [
{
"loc": [],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}