/ValueResponseModelExample.cs Secret
Created
August 1, 2017 13:33
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