URLS
URL configuration for Smarter API v1.
This module defines the urlpatterns for the /api/v1/ entry point and
delegates route handling to app-specific URL modules.
Routes
accounts/: User account management endpoints.llmclients/: LLMClient CRUD and related operations.openapi.json: The api’s OpenAPI 3.1 document (public),smarter.apps.api.v1.contract.views.cli/: Brokered services for CLI workflows.demos/: Fictional data for the platform’s example resources, e.g. the Stackademy course catalogue.mcp/: The MCPServer’s two endpoints: its public tools, which read the project’s documentation and code, and its staff-only tools, which read the platform’s health, logs and users.journal/: Smarter Journal entries (superusers only).connections/: External connection integration endpoints.doodles/: The sign-in page’s doodle of the day, and its artwork (public).plugins/: Plugin management endpoints.prompts/: Prompt and interaction endpoints.providers/: Provider integration endpoints.secrets/: Secret management endpoints.tests/: Test-only endpoints.vectorstores/: Vector store endpoints.
The SAM resource apps’ endpoints (connections, guardrails, llm-clients, plugins, secrets, …) are
mounted only if the app’s SMARTER_ENABLE_<APP> flag is true, which it is by default. See
smarter.lib.manifest.sam_apps.
Each included URL set uses a namespace to avoid naming collisions and to keep API components logically separated.
See also
- class smarter.apps.api.v1.urls.ApiV1ReverseNames[source]
Bases:
objectThe names of the routes at the root of
/api/v1/.e.g.
reverse(ApiV1ReverseNames.namespace, ApiV1ReverseNames.openapi_json).- namespace = 'api:v1'
- openapi_json = 'api_v1_open_api_json_view'
- smarter.apps.api.v1.urls.SAM_APP_API_URLS: list[SamAppUrls] = [('app_connection_enable', 'Connection', 'connections/', <module 'smarter.apps.connection.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/connection/api/v1/urls.py'>, 'connection'), ('app_guardrail_enable', 'Guardrail', 'guardrails/', <module 'smarter.apps.guardrail.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/guardrail/api/v1/urls.py'>, 'guardrail'), ('app_llmclient_enable', 'LLMClient', 'llm-clients/', <module 'smarter.apps.llmclient.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmclient/api/v1/urls.py'>, 'llmclient'), ('app_llmhost_enable', 'LLMHost', 'llmhosts/', <module 'smarter.apps.llmhost.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmhost/api/v1/urls.py'>, 'llmhost'), ('app_llmtool_enable', 'LLMTool', 'plugins/', <module 'smarter.apps.llmtool.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmtool/api/v1/urls.py'>, 'llmtool'), ('app_llmtool_enable', 'Extension', 'extensions/', <module 'smarter.apps.llmtool.extension.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmtool/extension/api/v1/urls.py'>, 'extension'), ('app_mcpclient_enable', 'MCPClient', 'mcpclients/', <module 'smarter.apps.mcpclient.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/mcpclient/api/v1/urls.py'>, 'mcpclient'), ('app_orchestrator_enable', 'Orchestrator', 'orchestrators/', <module 'smarter.apps.orchestrator.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/orchestrator/api/v1/urls.py'>, 'orchestrator'), ('app_provider_enable', 'Provider', 'providers/', <module 'smarter.apps.provider.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/provider/api/v1/urls.py'>, 'provider'), ('app_proxy_enable', 'Proxy', 'proxy/', <module 'smarter.apps.proxy.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/proxy/api/v1/urls.py'>, 'proxy'), ('app_secret_enable', 'Secret', 'secrets/', <module 'smarter.apps.secret.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/secret/api/v1/urls.py'>, 'secret'), ('app_vectorsearch_enable', 'VectorSearch', 'vectorsearches/', <module 'smarter.apps.vectorsearch.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/vectorsearch/api/v1/urls.py'>, 'vectorsearch'), ('app_vectorstore_enable', 'Vectorstore', 'vectorstores/', <module 'smarter.apps.vectorstore.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/vectorstore/api/v1/urls.py'>, 'vectorstore')]
The REST api endpoints of the SAM resource apps.
Each app’s endpoints are mounted only if its
smarter_settings.enable_<app>flag is true. Seesmarter.lib.manifest.sam_apps.[ SamAppUrls(setting='app_connection_enable', label='Connection', prefix='connections/', urls=<module 'smarter.apps.connection.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/connection/api/v1/urls.py'>, namespace='connection'), SamAppUrls(setting='app_guardrail_enable', label='Guardrail', prefix='guardrails/', urls=<module 'smarter.apps.guardrail.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/guardrail/api/v1/urls.py'>, namespace='guardrail'), SamAppUrls(setting='app_llmclient_enable', label='LLMClient', prefix='llm-clients/', urls=<module 'smarter.apps.llmclient.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmclient/api/v1/urls.py'>, namespace='llmclient'), SamAppUrls(setting='app_llmhost_enable', label='LLMHost', prefix='llmhosts/', urls=<module 'smarter.apps.llmhost.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmhost/api/v1/urls.py'>, namespace='llmhost'), SamAppUrls(setting='app_llmtool_enable', label='LLMTool', prefix='plugins/', urls=<module 'smarter.apps.llmtool.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmtool/api/v1/urls.py'>, namespace='llmtool'), SamAppUrls(setting='app_llmtool_enable', label='Extension', prefix='extensions/', urls=<module 'smarter.apps.llmtool.extension.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/llmtool/extension/api/v1/urls.py'>, namespace='extension'), SamAppUrls(setting='app_mcpclient_enable', label='MCPClient', prefix='mcpclients/', urls=<module 'smarter.apps.mcpclient.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/mcpclient/api/v1/urls.py'>, namespace='mcpclient'), SamAppUrls(setting='app_orchestrator_enable', label='Orchestrator', prefix='orchestrators/', urls=<module 'smarter.apps.orchestrator.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/orchestrator/api/v1/urls.py'>, namespace='orchestrator'), SamAppUrls(setting='app_provider_enable', label='Provider', prefix='providers/', urls=<module 'smarter.apps.provider.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/provider/api/v1/urls.py'>, namespace='provider'), SamAppUrls(setting='app_proxy_enable', label='Proxy', prefix='proxy/', urls=<module 'smarter.apps.proxy.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/proxy/api/v1/urls.py'>, namespace='proxy'), SamAppUrls(setting='app_secret_enable', label='Secret', prefix='secrets/', urls=<module 'smarter.apps.secret.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/secret/api/v1/urls.py'>, namespace='secret'), SamAppUrls(setting='app_vectorsearch_enable', label='VectorSearch', prefix='vectorsearches/', urls=<module 'smarter.apps.vectorsearch.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/vectorsearch/api/v1/urls.py'>, namespace='vectorsearch'), SamAppUrls(setting='app_vectorstore_enable', label='Vectorstore', prefix='vectorstores/', urls=<module 'smarter.apps.vectorstore.api.v1.urls' from '/home/runner/work/smarter/smarter/smarter/smarter/apps/vectorstore/api/v1/urls.py'>, namespace='vectorstore'), ]