0

I want to specify an example of string input format on swagger for users information purpose.

enter image description here

what i wanted to do is to put an example below the property ColumnAndSortOrder like "for e.g. Resource, Asc"

Is it possible to do so in .NET Core ?

BTW I'm using swagger UI 3.0

Any help or pointers are welcomed.

1 Answer 1

1

you can use these two attributes :

    [System.ComponentModel.Description("some description")]

or

    [Swashbuckle.AspNetCore.Annotations("some description")]

on your apis or properties

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.