2025-12-12 15:07:46 +03:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" />
< meta name = "viewport" content = "width=device-width, initial-scale=1" />
< meta name = "description" content = "XUI.ONE Admin API Documentation - Interactive Swagger UI" />
< title > XUI.ONE Admin API Documentation</ title >
2025-12-12 15:31:00 +03:00
< link rel = "stylesheet" href = "https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui.css" />
2025-12-12 15:07:46 +03:00
< style >
body {
margin : 0 ;
padding : 0 ;
2025-12-12 15:31:00 +03:00
font-family : - apple-system , BlinkMacSystemFont , "Segoe UI" , Roboto , "Helvetica Neue" , Arial , sans-serif ;
2025-12-12 15:07:46 +03:00
}
. topbar {
2025-12-12 15:31:00 +03:00
display : none !important ;
2025-12-12 15:07:46 +03:00
}
. swagger-ui . info {
margin : 50 px 0 ;
}
. swagger-ui . info . title {
font-size : 36 px ;
color : #3b4151 ;
}
. custom-header {
background : linear-gradient ( 135 deg , #667eea 0 % , #764ba2 100 % );
color : white ;
padding : 30 px ;
text-align : center ;
box-shadow : 0 2 px 10 px rgba ( 0 , 0 , 0 , 0.1 );
}
. custom-header h1 {
margin : 0 ;
font-size : 42 px ;
font-weight : 700 ;
}
. custom-header p {
margin : 10 px 0 0 ;
font-size : 18 px ;
opacity : 0.9 ;
}
. custom-links {
margin-top : 20 px ;
}
. custom-links a {
color : white ;
text-decoration : none ;
margin : 0 15 px ;
padding : 8 px 20 px ;
border : 2 px solid white ;
border-radius : 5 px ;
transition : all 0.3 s ;
display : inline-block ;
}
. custom-links a : hover {
background : white ;
color : #667eea ;
}
. info-banner {
background : #fff3cd ;
border : 1 px solid #ffc107 ;
border-radius : 5 px ;
padding : 15 px ;
margin : 20 px auto ;
max-width : 1200 px ;
text-align : center ;
}
. info-banner strong {
color : #856404 ;
}
2025-12-12 15:31:00 +03:00
# swagger-ui {
max-width : 1460 px ;
margin : 0 auto ;
}
. loading-message {
text-align : center ;
padding : 40 px ;
font-size : 18 px ;
color : #666 ;
}
2025-12-12 15:07:46 +03:00
</ style >
</ head >
< body >
< div class = "custom-header" >
< h1 > 🎬 XUI.ONE Admin API</ h1 >
< p > Complete API Documentation for IPTV Panel Administration</ p >
< div class = "custom-links" >
< a href = "https://github.com/worldofiptvcom/xui-one-api-docs" target = "_blank" > 📖 GitHub</ a >
< a href = "https://www.worldofiptv.com" target = "_blank" > 💬 Community</ a >
< a href = "https://xui.one" target = "_blank" > 🌐 XUI.ONE</ a >
</ div >
</ div >
< div class = "info-banner" >
< strong > 📢 Note:</ strong > This documentation is for XUI.ONE v1.5.13+.
Replace placeholder values (< code > your-server.com</ code > , < code > < API-KEY> </ code > , < code > < Access-Code> </ code > ) with your actual credentials.
</ div >
2025-12-12 15:31:00 +03:00
< div id = "swagger-ui" >
< div class = "loading-message" > ⏳ Loading API Documentation...</ div >
</ div >
2025-12-12 15:07:46 +03:00
< footer style = "text-align: center; padding: 40px 20px; background: #fafafa; margin-top: 50px; border-top: 1px solid #e5e5e5;" >
< p style = "color: #666; margin: 0;" >
< strong > XUI.ONE Admin API Documentation</ strong >
</ p >
< p style = "color: #999; margin: 10px 0 0; font-size: 14px;" >
Made with ❤️ by < a href = "https://www.worldofiptv.com" target = "_blank" style = "color: #667eea; text-decoration: none;" > World of IPTV</ a >
</ p >
< p style = "color: #999; margin: 10px 0 0; font-size: 12px;" >
Documentation licensed under MIT | XUI.ONE software is proprietary
</ p >
</ footer >
2025-12-12 15:31:00 +03:00
< script src = "https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-bundle.js" crossorigin ></ script >
< script src = "https://unpkg.com/swagger-ui-dist@5.11.0/swagger-ui-standalone-preset.js" crossorigin ></ script >
< script >
window . onload = function () {
try {
window . ui = SwaggerUIBundle ({
url : 'openapi.yaml' ,
dom_id : '#swagger-ui' ,
deepLinking : true ,
presets : [
SwaggerUIBundle . presets . apis ,
SwaggerUIStandalonePreset
],
plugins : [
SwaggerUIBundle . plugins . DownloadUrl
],
layout : "StandaloneLayout" ,
defaultModelsExpandDepth : 1 ,
defaultModelExpandDepth : 1 ,
docExpansion : 'list' ,
filter : true ,
showRequestHeaders : true ,
tryItOutEnabled : true ,
requestSnippetsEnabled : true ,
supportedSubmitMethods : [ 'get' , 'post' , 'put' , 'delete' , 'patch' ],
validatorUrl : null ,
onComplete : function () {
console . log ( '✅ Swagger UI loaded successfully!' );
},
onFailure : function ( error ) {
console . error ( '❌ Swagger UI failed to load:' , error );
document . getElementById ( 'swagger-ui' ). innerHTML =
'<div style="padding: 40px; text-align: center; color: #d32f2f;">' +
'<h2>⚠️ Failed to Load API Documentation</h2>' +
'<p>Error: ' + error . message + '</p>' +
'<p>Please check the browser console for more details.</p>' +
'<p><a href="openapi.yaml" target="_blank">View raw OpenAPI spec</a></p>' +
'</div>' ;
}
});
} catch ( error ) {
console . error ( '❌ Error initializing Swagger UI:' , error );
document . getElementById ( 'swagger-ui' ). innerHTML =
'<div style="padding: 40px; text-align: center; color: #d32f2f;">' +
'<h2>⚠️ Failed to Initialize Swagger UI</h2>' +
'<p>Error: ' + error . message + '</p>' +
'<p><a href="openapi.yaml" target="_blank">View raw OpenAPI spec</a></p>' +
'</div>' ;
}
};
</ script >
2025-12-12 15:07:46 +03:00
</ body >
</ html >