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?

有帮助吗?

解决方案

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...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top