Web API Help Pages - User-specific response type

2019-07-12 13:24发布

I'm developing an API that outputs a different response based on the user, and I'm currently using the ResponseType attribute to describe the type of response that's returned, but this only allows me to specify one type of response, which will differ between users.

Is there any way I can customise the help pages to display the response type that the user will get?

1条回答
Lonely孤独者°
2楼-- · 2019-07-12 13:42

HelpPage does not support these dynamic response types and relies on available static information.

HelpPage doesn't support multiple response types as mentioned earlier...the fact that we are allowing multiple attributes of ResponseType is a bug...as per current code logic, even if you supply multiple attributes, we only pick one...

查看更多
登录 后发表回答