ApiExplorer does not recognize route attributes with custom type

前端 未结 2 1360
离开以前
离开以前 2021-01-24 18:37

I have a project where I want to use route attributes with a custom type. The following code where I have the custom type as a query parameter works fine and the help page displ

2条回答
  •  离开以前
    2021-01-24 19:41

    Not exactly sure what data structure IntegerListParameter list is but if you need to send a comma delimited list of integers in the query(e.g. ~api/products?ids=1,2,3,4) you can use filter attributes. An example implementation of this can be found here: Convert custom action filter for Web API use?

提交回复
热议问题