How do I access the kwargs? it seems **kwargs is missing in the parameter list.
But:
class CatResource(PetResource):
@use_kwargs({'category': ma.fields.Int()})
@marshal_with(PetSchema(), code=201)
def get(self,**kwargs):
print( len(**kwargs) ) # --> 0 !!! even they have been snd
return Pet('calici', 'cat'), 200
How do I get use_kwargs to work in this case:
Just replace the class in your example and test the put command within the swagger-ui
result:
and in this case:
How do I access the kwargs? it seems **kwargs is missing in the parameter list. But:
:-(