C# Webapi HelpPage Request Model Customization -


I created my Web API Controllers using the Document HelpPage. I have a model in my web API.

  public class InfoModel {[required] Public Ent ID {get; Set; } [Required] public string title {get; Set; } Public string status {received; Set; } Public string created_at {get; Set; }}   

HelpPage gives InfoModel on the help page like this:

  {"id": 1, "title": "sample string 2" , "Condition": using the [required] attribute from "sample string 3", "created_t": "sample string 4"}   

and I have the [required] property properties I want to highlight. How can I customize HelpPage MVC plugin for bold " id " and " title ", so that the user knows that these attributes are REQUIRED ID ": 1,

" title ": "sample string 2",

Understand CSS, but for that helppace MVC [essential] are some of the signs for the attributes HTML content should be submitted to the JS / CSS could differently to style them on client side. I area. Help page Object generator is expecting some modifications in the class which is responsible for creating HTML for InfoModel.

If you are using the latest version of the Web API, you will see data annotation attributes like Useful information about the required etc. Example << p>

Example: Enter image details here < / Html>

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -