Your API. A shared contract. Every client.
Extract your service’s typed boundary, build an artifact, then pull it into an existing frontend. Your backend continues to handle the requests.
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Task(BaseModel):
id: str
title: str
completed: bool = False
@app.get("/tasks/{id}", response_model=Task)
def get_task(id: str):
return Task(id=id, title="Review release notes") amends "axiom-fastapi:./main.py:app"
// Extract routes + request / response types.
// Add policies, mocks, and tests here.
// Build the versioned .axiom artifact. # In your frontend project
axiom pull --contract ../backend/axiom.axiom --framework atmx-web
# Then initialize the runtime and use
# the generated target-specific client. /tasks/{id} - id
- String
- title
- String
- completed
- Boolean
Today’s focus01
Ready for your next release.
{ id, title, completed } After CLI installation and alpha access, install the FastAPI extractor. Extraction imports your application; its Python dependencies must be available. React and Flutter paths are alpha.
Client integration guide ↗