using Nancy; using Nancy.Metadata.Modules; using Nancy.Metadata.Swagger.Core; using Nancy.Metadata.Swagger.Fluent; namespace Sony.Filtr.AdminAPI.Modules.PublicData { public class DefaultFilteringMetadataModule : MetadataModule { public DefaultFilteringMetadataModule() { var tag = "Default Filtering"; Describe["GetDefaultFiltering"] = description => new SwaggerRouteMetadata(description).With(c => c.WithDescription("Get the default filtering values which should be used when searching for tracks. Primarily used by workout application.", tag) .WithDefaultResponse()); Describe["UpdateDefaultFiltering"] = description => new SwaggerRouteMetadata(description).With(c => c.WithDescription("Set the default filtering values which should be used when searching for tracks. Primarily used by workout application.", tag) .WithRequestModel() .WithDefaultResponse() .WithResponse(HttpStatusCode.BadRequest, "Missing or invalid parameter")); } } }