Skip to content

Commit

Permalink
Update issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav authored Jan 21, 2024
1 parent f268fd9 commit 439171d
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/ISSUE_TEMPLATE/fastcrud-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,7 @@ A clear and concise description of what the bug or question is.
**To Reproduce**
Please provide a self-contained, minimal, and reproducible example of your use case
```python
from fastapi import FastAPI
from fastcrud import FastCRUD, crud_router
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine
from sqlalchemy.orm import sessionmaker

DATABASE_URL = "sqlite+aiosqlite:///./test.db"
engine = create_async_engine(DATABASE_URL, echo=True)
async_session = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)

app = FastAPI()

item_router = crud_router(
session=async_session,
model=Item,
crud=FastCRUD(Item),
create_schema=ItemCreateSchema,
update_schema=ItemUpdateSchema,
path="/items",
tags=["Items"]
)

app.include_router(item_router)
# Your code here
```

**Description**
Expand Down

0 comments on commit 439171d

Please sign in to comment.