generated from Luis/nextjs-python-web-template
delete response model for at/detach
This commit is contained in:
@@ -178,7 +178,7 @@ def get_attached_entities(
|
||||
return entities
|
||||
|
||||
|
||||
@router.get("/api/v1/detach", response_model=Optional[Entity], tags=[Tags.entities])
|
||||
@router.get("/api/v1/detach")
|
||||
async def detach(
|
||||
background_tasks: BackgroundTasks,
|
||||
entity_did: str = "did:sov:test:1234",
|
||||
@@ -192,7 +192,7 @@ async def detach(
|
||||
return {"message": "Detaching in the background"}
|
||||
|
||||
|
||||
@router.get("/api/v1/attach", response_model=Optional[Entity], tags=[Tags.entities])
|
||||
@router.get("/api/v1/attach")
|
||||
async def attach(
|
||||
background_tasks: BackgroundTasks,
|
||||
entity_did: str = "did:sov:test:1234",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
from sqlalchemy.sql.expression import true
|
||||
|
||||
from typing import List, Optional
|
||||
|
||||
from sqlalchemy.orm import Session
|
||||
from sqlalchemy.sql.expression import true
|
||||
|
||||
from . import schemas, sql_models
|
||||
|
||||
|
||||
Reference in New Issue
Block a user