Files

45 lines
2.8 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="420" viewBox="0 0 1200 420" role="img" aria-labelledby="title desc">
<title id="title">OllaHubBackend</title>
<desc id="desc">OllaHubBackend: tabela de rotas do servidor na porta 8080, com a verificação e a instalação do Ollama, a lista de modelos protegida por JWT e o chat por WebSocket, todas ligadas ao Ollama na porta 11434.</desc>
<rect width="1200" height="420" rx="24" fill="#18181B"/>
<g id="title-block" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif">
<text x="64" y="170" font-size="64" font-weight="700" fill="#FAFAFA">OllaHubBackend</text>
<text x="64" y="226" font-size="28" fill="#FAFAFA">API HTTP e WebSocket em Rust</text>
<text x="64" y="264" font-size="28" fill="#FAFAFA">para instalar e operar o Ollama.</text>
<text x="64" y="322" font-size="20" fill="#A1A1AA" font-family="ui-monospace, 'SF Mono', Consolas, monospace">Rust · Actix Web 4.11 · utoipa · JWT</text>
</g>
<g id="routes" font-family="ui-monospace, 'SF Mono', Consolas, monospace" font-size="20">
<rect x="632" y="56" width="504" height="236" rx="14" fill="#09090B" stroke="#3F3F46" stroke-width="2"/>
<text x="656" y="88" fill="#FAFAFA">:8080</text>
<text x="1112" y="88" font-size="18" fill="#A1A1AA" text-anchor="end" font-family="system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif">Swagger em /docs</text>
<path d="M632 106 h504" stroke="#27272A" stroke-width="2"/>
<text x="656" y="142" fill="#A1A1AA">GET</text>
<text x="728" y="142" fill="#FAFAFA">/v2/api/ollama/check</text>
<text x="656" y="182" fill="#A1A1AA">POST</text>
<text x="728" y="182" fill="#FAFAFA">/v2/api/ollama/install</text>
<text x="1112" y="182" fill="#00BC7D" text-anchor="end">202</text>
<text x="656" y="222" fill="#A1A1AA">GET</text>
<text x="728" y="222" fill="#FAFAFA">/v2/api/models</text>
<g fill="none" stroke="#FE9A00" stroke-width="2.5" stroke-linejoin="round">
<rect x="1050" y="206" width="18" height="16" rx="3" fill="#FE9A00"/>
<path d="M1053 206 v-5 a6 6 0 0 1 12 0 v5"/>
</g>
<text x="1112" y="222" font-size="18" fill="#FE9A00" text-anchor="end">JWT</text>
<text x="656" y="262" fill="#A1A1AA">WS</text>
<text x="728" y="262" fill="#FAFAFA">/v2/ws/chat</text>
</g>
<g id="ollama" font-family="ui-monospace, 'SF Mono', Consolas, monospace">
<path d="M884 294 v26 M876 312 l8 8 l8 -8" fill="none" stroke="#A1A1AA" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="774" y="326" width="220" height="44" rx="10" fill="#09090B" stroke="#3F3F46" stroke-width="2"/>
<text x="884" y="355" font-size="20" fill="#FAFAFA" text-anchor="middle">Ollama :11434</text>
</g>
</svg>