lnbits/extensions/streamalerts/views_api.py
async def api_create_service(
    data: CreateService, wallet: WalletTypeInfo = Depends(get_key_type)
):
    """Create a service, which holds data about how/where to post donations"""
    try:
        service = await create_service(data=data)
    except Exception as e:
        raise HTTPException(status_code=HTTPStatus.INTERNAL_SERVER_ERROR, detail=str(e))

    return service.dict()
Create a service, which holds data about how/where to post donations
Create a service, which holds data about how/where to post donations
Create a service which holds data about how / where to post donations
async def api_create_service(
    data: CreateService, wallet: WalletTypeInfo = Depends(get_key_type)
):
    try:
        service = await create_service(data=data)
    except Exception as e:
        raise HTTPException(status_code=HTTPStatus.INTERNAL_SERVER_ERROR, detail=str(e))
    return service.dict()
async def api_create_service ( data : CreateService , wallet : WalletTypeInfo = Depends ( get_key_type ) ) : try : service = await create_service ( data = data ) except Exception as e : raise HTTPException ( status_code = HTTPStatus . INTERNAL_SERVER_ERROR , detail = str ( e ) ) return service . dict ( )
Create a service, which holds data about how/where to post donations
Create a service which holds data about how / where to post donations
"""Create a service, which holds data about how/where to post donations"""
data
CreateService
wallet
WalletTypeInfo