Spaces:
Running
Running
File size: 1,858 Bytes
0a00054 |
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
openapi: 3.0.3
info:
title: Pigeon AI
description: Pigeon AI
version: 1.0.0
servers:
- url: 'https'
paths:
/api/task:
post:
summary: Create a task
operationId: createTask
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/youtubeLink'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/task'
/api/task/{taskId}/status:
get:
summary: Get task status
operationId: getTask
parameters:
- name: taskId
in: path
required: true
description: task id
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/taskStatus'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/error'
components:
schemas:
youtubeLink:
type: object
properties:
youtubeLink:
type: string
description: youtube link
example: https://www.youtube.com/watch?v=5qap5aO4i9A
task:
type: object
properties:
taskId:
type: string
description: task id generated by uuid
example: 7a765280-1a72-47e4-8747-8a38cdbaca91
taskStatus:
type: object
properties:
status:
type: string
description: task status
example: PROCESSING
error:
type: object
properties:
error:
type: string
description: error message
example: 'Invalid youtube link' |