Skip to content

Commit 27c7094

Browse files
committed
feat: update spec to 0.1.10
Problem: New version of API spec is available for Text2Motion with support for new experimental model. Solution: Update the API spec to the latest version. Risk: This change added new API, which is a non-breaking change for existing clients. Testing Done: Tested generating python-client using the new spec and successfully use it to make server request to the existing generate API and also the new lab generate API.
1 parent de66e95 commit 27c7094

File tree

1 file changed

+82
-1
lines changed

1 file changed

+82
-1
lines changed

spec.yaml

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.2
22
info:
33
title: Text2Motion API
4-
version: 0.1.0
4+
version: 0.1.10
55
servers:
66
- url: https://api.text2motion.ai
77
description: Production environment
@@ -76,6 +76,87 @@ paths:
7676
$ref: "#/components/schemas/HTTPValidationError"
7777
security:
7878
- APIKeyHeader: []
79+
/api/labs/0.1.0/generate:
80+
post:
81+
tags:
82+
- generate
83+
summary: Generate
84+
description: >-
85+
Request text to animation generation using model version 0.1.0.
86+
87+
---
88+
89+
**Note: This API is experimental and may be discontinued or broken at any time.**
90+
91+
92+
Parameters:
93+
request_body (GenerateRequestBody): The request body.
94+
95+
Returns:
96+
GenerateResponseBody: The generated animation response.
97+
operationId: generate_api_labs_0_1_0_generate_post
98+
requestBody:
99+
content:
100+
application/json:
101+
schema:
102+
$ref: "#/components/schemas/GenerateRequestBody"
103+
required: true
104+
responses:
105+
"200":
106+
description: Successful Response
107+
content:
108+
application/json:
109+
schema:
110+
$ref: "#/components/schemas/GenerateResponseBody"
111+
"404":
112+
description: Not found
113+
"422":
114+
description: Validation Error
115+
content:
116+
application/json:
117+
schema:
118+
$ref: "#/components/schemas/HTTPValidationError"
119+
security:
120+
- APIKeyHeader: []
121+
/api/labs/0.1.0/feedback:
122+
post:
123+
tags:
124+
- feedback
125+
summary: Feedback
126+
description: >-
127+
Provide feedback to a generate animation request for model version
128+
0.1.0.
129+
130+
---
131+
132+
**Note: This API is experimental and may be discontinued or broken at any time.**
133+
134+
135+
Parameters:
136+
request_body (GenerateRequestBody): The request body.
137+
operationId: feedback_api_labs_0_1_0_feedback_post
138+
requestBody:
139+
content:
140+
application/json:
141+
schema:
142+
$ref: "#/components/schemas/FeedbackRequestBody"
143+
required: true
144+
responses:
145+
"200":
146+
description: Successful Response
147+
content:
148+
application/json:
149+
schema: {}
150+
"404":
151+
description: Not found
152+
"422":
153+
description: Validation Error
154+
content:
155+
application/json:
156+
schema:
157+
$ref: "#/components/schemas/HTTPValidationError"
158+
security:
159+
- APIKeyHeader: []
79160
components:
80161
schemas:
81162
Bone:

0 commit comments

Comments
 (0)