thisAKcode / fastapi_streetart_map

0 stars 0 forks source link

create endpoint issue #30

Closed bbelderbos closed 1 year ago

bbelderbos commented 1 year ago

Might be related to this issue: https://github.com/thisAKcode/fastapi_streetart_map/issues/29

Commenting the following:

@router.post('/create')#, response_model = ItemSchema)

And trying out the create endpoint with int 1 I get:

  File "/Users/bbelderbos/code/PDM/projects/alex/fastapi_streetart_map/app/./router.py", line 24, in create
    crud.create_art_item(db, dataset_id, art_item = request.parameter)
AttributeError: 'Request' object has no attribute 'parameter'