File size: 3,656 Bytes
3625ad2 | 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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API | BoneWizardry 3000 Unleashed</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-900 text-gray-200">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="bg-gray-800/80 backdrop-blur-sm rounded-xl p-6 border border-gray-700 shadow-2xl">
<h1 class="text-4xl font-bold mb-6 text-indigo-300 flex items-center gap-3">
<i data-feather="cpu"></i> API Documentation
</h1>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700">
<h2 class="text-2xl font-bold mb-4 text-indigo-200">
<i data-feather="upload" class="inline mr-2"></i> Upload Character
</h2>
<pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto">
POST /api/upload
Content-Type: multipart/form-data
{
"image": "File",
"name": "String",
"type": "2d|3d-flat"
}</pre>
<p class="mt-4 text-gray-400">Upload a character image for rigging.</p>
</div>
<div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700">
<h2 class="text-2xl font-bold mb-4 text-indigo-200">
<i data-feather="sliders" class="inline mr-2"></i> Process Rigging
</h2>
<pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto">
POST /api/rig
Content-Type: application/json
{
"character_id": "UUID",
"pivots": {
"head": {x: number, y: number},
"arms": {x: number, y: number}
},
"meshes": ["head", "arms", "body"]
}</pre>
<p class="mt-4 text-gray-400">Process character rigging with specified parameters.</p>
</div>
<div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700">
<h2 class="text-2xl font-bold mb-4 text-indigo-200">
<i data-feather="activity" class="inline mr-2"></i> Animate Character
</h2>
<pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto">
POST /api/animate
Content-Type: application/json
{
"character_id": "UUID",
"animation": "idle|walk|run|jump|custom",
"parameters": {}
}</pre>
<p class="mt-4 text-gray-400">Apply animations to your character.</p>
</div>
<div class="bg-gray-900/50 rounded-lg p-6 border border-gray-700">
<h2 class="text-2xl font-bold mb-4 text-indigo-200">
<i data-feather="download" class="inline mr-2"></i> Export Model
</h2>
<pre class="bg-gray-800 p-4 rounded-md text-sm overflow-x-auto">
GET /api/export
{
"character_id": "UUID",
"format": "live2d|spine|png"
}</pre>
<p class="mt-4 text-gray-400">Export your rigged character in various formats.</p>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script>
feather.replace();
</script>
</body>
</html> |