-
-
Save justinyoo/47a9d909187562ef13db29062d5aeac2 to your computer and use it in GitHub Desktop.
Swashbuckle Pro Tips for ASP.NET Web API #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ValueResponseModelExample : IExamplesProvider | |
{ | |
public virtual object GetExamples() | |
{ | |
var value = new ValueReference() | |
{ | |
Id = Guid.NewGuid(), | |
Name = "value name", | |
Value = 123, | |
IsValid = true, | |
AddedOn = DateTimeOffset.Now | |
}; | |
var model = new ValueResponseModel() { Value = value }; | |
return model; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment