Can I configure the sending of my GET request to the service stack?

When I make a GET request in my service stack, it works fine. Thanks to the service stack, to make the developer’s work very simple. I have two requests on the page. Maybe someone can help me. it’s always better for me to know what you are working for and how the inner thing works.

enter image description here

see the image above, when I send a GET request to the service stack, it displays me this kind of layout.

1> I want to know if I can configure its display. that is, you can delete the message "SnapShot of ....." (large header)

2> I want to know why this takes up space in the table header (result table) for each capital symbol defined in the property. that is, in my project, the name of the property in the class -> instanceName, which is represented as the "instance name" in the header.

Can someone tell me what is the reason for this ??

+5
source share
1 answer

Implementation of HtmlFormat is performed in one class at: https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack/WebHost.Endpoints/Formats/HtmlFormat.cs

It allows you to perform some configuration, for example:

HtmlFormat.TitleFormat = "";
HtmlFormat.HtmlTitleFormat = "";

, , , . , , . , -:

https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack/WebHost.EndPoints/Formats/HtmlFormat.cs#L289

JSON HTML : https://github.com/ServiceStack/ServiceStack/wiki/HTML5ReportFormat

+4

All Articles