malepati/custom_template_working
0
1{2 "openapi": "3.1.0",3 "info": {4 "title": "FastAPI",5 "version": "0.1.0"6 },7 "paths": {8 "/api/v1/ppt/presentation/generate": {9 "post": {10 "tags": ["Presentation"],11 "summary": "Returns base URL of generated presentation's PDF or PPTX.",12 "operationId": "generate_presentation",13 "requestBody": {14 "content": {15 "multipart/form-data": {16 "schema": {17 "$ref": "#/components/schemas/Body_generate_presentation_api_api_v1_ppt_presentation_generate_post"18 }19 }20 },21 "required": true22 },23 "responses": {24 "200": {25 "description": "Successful Response",26 "content": {27 "application/json": {28 "schema": {29 "$ref": "#/components/schemas/PresentationPathAndEditPath"30 }31 }32 }33 },34 "422": {35 "description": "Validation Error",36 "content": {37 "application/json": {38 "schema": {39 "$ref": "#/components/schemas/HTTPValidationError"40 }41 }42 }43 }44 }45 }46 },47 "/api/v1/ppt/template-management/summary": {48 "get": {49 "tags": ["template-management"],50 "summary": "Get all presentations with layout counts",51 "description": "Returns a list of extra custom templates available for presenation creation.",52 "operationId": "templates_list",53 "responses": {54 "200": {55 "description": "Presentations summary retrieved successfully",56 "content": {57 "application/json": {58 "schema": {59 "$ref": "#/components/schemas/GetPresentationSummaryResponse"60 }61 }62 }63 },64 "500": {65 "description": "Internal server error",66 "content": {67 "application/json": {68 "schema": {69 "$ref": "#/components/schemas/ErrorResponse"70 }71 }72 }73 }74 }75 }76 }77 },78 "components": {79 "schemas": {80 "Body_generate_presentation_api_api_v1_ppt_presentation_generate_post": {81 "properties": {82 "prompt": {83 "type": "string",84 "title": "Prompt"85 },86 "n_slides": {87 "type": "integer",88 "title": "N Slides",89 "default": 890 },91 "language": {92 "type": "string",93 "title": "Language",94 "default": "English"95 },96 "template": {97 "type": "string",98 "title": "Template",99 "default": "general"100 },101 "files": {102 "anyOf": [103 {104 "items": {105 "type": "string",106 "format": "binary"107 },108 "type": "array"109 },110 {111 "type": "null"112 }113 ],114 "title": "Files"115 },116 "export_as": {117 "type": "string",118 "enum": ["pptx", "pdf"],119 "title": "Export As",120 "default": "pptx"121 }122 },123 "type": "object",124 "required": ["prompt"],125 "title": "Body_generate_presentation_api_api_v1_ppt_presentation_generate_post"126 },127 "PresentationPathAndEditPath": {128 "properties": {129 "presentation_id": {130 "type": "string",131 "title": "Presentation Id"132 },133 "path": {134 "type": "string",135 "title": "Path"136 },137 "edit_path": {138 "type": "string",139 "title": "Edit Path"140 }141 },142 "type": "object",143 "required": ["presentation_id", "path", "edit_path"],144 "title": "PresentationPathAndEditPath"145 },146 "HTTPValidationError": {147 "properties": {148 "detail": {149 "items": {150 "$ref": "#/components/schemas/ValidationError"151 },152 "type": "array",153 "title": "Detail"154 }155 },156 "type": "object",157 "title": "HTTPValidationError"158 },159 "ValidationError": {160 "properties": {161 "loc": {162 "items": {163 "anyOf": [164 {165 "type": "string"166 },167 {168 "type": "integer"169 }170 ]171 },172 "type": "array",173 "title": "Location"174 },175 "msg": {176 "type": "string",177 "title": "Message"178 },179 "type": {180 "type": "string",181 "title": "Error Type"182 }183 },184 "type": "object",185 "required": ["loc", "msg", "type"],186 "title": "ValidationError"187 },188 "GetPresentationSummaryResponse": {189 "properties": {190 "success": {191 "type": "boolean",192 "title": "Success"193 },194 "presentations": {195 "items": {196 "$ref": "#/components/schemas/PresentationSummary"197 },198 "type": "array",199 "title": "Presentations"200 },201 "total_presentations": {202 "type": "integer",203 "title": "Total Presentations"204 },205 "total_layouts": {206 "type": "integer",207 "title": "Total Layouts"208 },209 "message": {210 "anyOf": [211 {212 "type": "string"213 },214 {215 "type": "null"216 }217 ],218 "title": "Message"219 }220 },221 "type": "object",222 "required": ["success", "presentations", "total_presentations", "total_layouts"],223 "title": "GetPresentationSummaryResponse"224 },225 "PresentationSummary": {226 "properties": {227 "presentation_id": {228 "type": "string",229 "title": "Presentation Id"230 },231 "layout_count": {232 "type": "integer",233 "title": "Layout Count"234 },235 "last_updated_at": {236 "anyOf": [237 {238 "type": "string",239 "format": "date-time"240 },241 {242 "type": "null"243 }244 ],245 "title": "Last Updated At"246 },247 "template": {248 "anyOf": [249 {250 "additionalProperties": true,251 "type": "object"252 },253 {254 "type": "null"255 }256 ],257 "title": "Template"258 }259 },260 "type": "object",261 "required": ["presentation_id", "layout_count"],262 "title": "PresentationSummary"263 },264 "ErrorResponse": {265 "properties": {266 "success": {267 "type": "boolean",268 "title": "Success",269 "default": false270 },271 "detail": {272 "type": "string",273 "title": "Detail"274 },275 "error_code": {276 "anyOf": [277 {278 "type": "string"279 },280 {281 "type": "null"282 }283 ],284 "title": "Error Code"285 }286 },287 "type": "object",288 "required": ["detail"],289 "title": "ErrorResponse"290 }291 }292 }293}