This repository contains the server-side code for the Canvas Creation Module API. The API provides endpoints for submitting and managing 3D and AI image tasks, as well as retrieving their statuses and previews.
/creation-module/3d-image/submit
POST
Request Body:
{
"user_id": "string",
"project_id": "string",
"scene_data": "object"
}
Response:
{
"status": "success",
"data": {
"message": "Task successfully submitted",
"job_id": "string"
}
}
/creation-module/ai-image/submit
POST
Request Body:
{
"user_id": "string",
"project_id": "string",
"rendered_image_id": "string",
"ai_scene_data": "object"
}
Response:
{
"status": "success",
"data": {
"message": "Task successfully submitted",
"job_id": "string"
}
}
/creation-module/3d-image/update-status
POST
Request Body:
{
"row_id": "string",
"new_status": "integer"
}
Response:
{
"status": "success",
"data": {
"row": "string",
"status": "integer"
}
}
/creation-module/ai-image/update-status
POST
Request Body:
{
"row_id": "string",
"new_status": "integer"
}
Response:
{
"status": "success",
"data": {
"row": "string",
"status": "integer"
}
}
/creation-module/3d-image/status/:project_id
GET
Response:
{
"status": "success",
"data": {
"status": "integer"
}
}
/creation-module/ai-image/status/:project_id
GET
Response:
{
"status": "success",
"data": {
"status": "integer"
}
}
/creation-module/3d-image/upload-preview
POST
Request Body:
{
"row_id": "string",
"image_base64": "string"
}
Response:
{
"status": "success",
"message": "Preview uploaded successfully"
}
/creation-module/ai-image/upload-preview
POST
Request Body:
{
"row_id": "string",
"image_base64": "string"
}
Response:
{
"status": "success",
"message": "Preview uploaded successfully"
}
/creation-module/3d-image/preview/:project_id
GET
Response:
{
"status": "success",
"data": "string"
}
/creation-module/ai-image/preview/:project_id
GET
Response:
{
"status": "success",
"data": "string"
}
/creation-module/3d-image/:row_id
GET
Response:
{
"status": "success",
"data": "object"
}
/creation-module/ai-image/:row_id
GET
Response:
{
"status": "success",
"data": "object"
}
This project is licensed under the MIT License.