# Keep HTTP outside the business code

Apply the declarative linking boundary to existing functions, layered Python services, and reusable libraries.

## Guides {#guides}

[Start from one function ### Expose a Python function as an HTTP API without decorators Map an unchanged typed function to a route, validate the manifest, and call it through local preview.](/apizit-linking-examples/guides/expose-python-function-as-http-api-without-decorators/) [Separate domain and transport ### Keep Python business logic independent from FastAPI Decide when route decorators belong in the application and when HTTP should remain an external adapter.](/apizit-linking-examples/guides/keep-python-business-logic-independent-from-fastapi/) [Start from a package ### Turn a Python library into an API with YAML Link functions in a multi-module package while preserving normal absolute, relative, and lazy imports.](/apizit-linking-examples/guides/turn-python-library-into-api-with-yaml/)

## Need the exact contract? {#reference}

The guides explain architectural choices. Use the reference when you need field-level rules or complete command options.

- [Linking YAML reference](/apizit-linking-examples/reference/linking-yaml/)
- [Validate and preview CLI reference](/apizit-linking-examples/reference/cli/)
- [Runnable example catalogue](/apizit-linking-examples/examples/)

## Build and diagnose with clear context

[Build with an AI assistant](/apizit-linking-examples/guides/ai-assisted-development/) takes you from a tested function to a validated manifest and a local HTTP request. [Trace a route back to Python](/apizit-linking-examples/guides/trace-route-to-python/) follows an HTTP log through the manifest into a multi-module project.

## Choose the right framework

Compare [Linking and Flask](/apizit-linking-examples/comparisons/flask/) for explicit handlers and extension points, or [Linking and FastAPI](/apizit-linking-examples/comparisons/fastapi/) for rich request and response models. The [FAQ](/apizit-linking-examples/faq/) covers installation and independence from APIZIT hosting.
