0
Versions: 
coreapi==2.3.1 
Django==1.11.2 
django-rest-framework==0.1.0 
django-rest-swagger==2.1.2 
django-silk==1.0.0 
djangorestframework==3.6.3 

API端点:/search?filter=("pages")?filter=("people")如何在django rest framework swagger中显示多个值参数?

在我SwaggerSchemaView我如下定义过滤器领域:

coreapi.Field(name="filters", description="=search(query)", location="query", type="array", required=True) 

扬鞭看起来是这样的:

enter image description here

现在,当我提供值框中的值将导致格式为api:

/search?filter=("pages"),("people") 

我怎样才能让招摇方面,我想,该格式是

/search?filter=("pages")?filter=("people")

回答

相关问题