-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: FastCRUD Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: FastCRUD Issue | ||
about: Issue Template for FastCRUD | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug or question** | ||
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) | ||
``` | ||
|
||
**Description** | ||
Describe the problem, question, or error you are facing. Include both the expected output for your input and the actual output you're observing. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |