How we can add summary, notes in Routes using the Fluid API ?
People love swagger, our analyst wants to write the description, using our web interface. We use Fluid API, so we are able to fetch the updated descriptions, before AppHost Routing. But in Fluid API, there are not public parameters for summary / notes, as in classic Route attribute.
The API is here:
https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack/Host/ServiceRoutes.cs#L54
You can also add attributes dynamically, e.g:
typeof(Request)
.AddAttributes(new ApiAttribute(“Description”));
Which you can do for all attributes including the Swagger Attributes:
https://github.com/ServiceStack/ServiceStack/wiki/Swagger-API#swagger-attributes
Note: Because the [Route] attribute are loaded before AppHost.Configure() if you to add them dynamically you’d need to add earlier like in the AppHost constructor.