using System; using System.Collections.Generic; using System.Linq; using Nancy.Metadata.Modules; using Nancy.Metadata.Swagger.Core; using Nancy.Metadata.Swagger.Fluent; using Sony.Filtr.AdminAPI.ViewModels.Graph; using Sony.Filtr.AdminAPI.ViewModels.PlaylistCuration; namespace Sony.Filtr.AdminAPI.Modules { public class ArtistGraphMetadataModule : MetadataModule { public ArtistGraphMetadataModule() { var tag = "Artist graphs"; Describe["ArtistFollowersGraph"] = description => new SwaggerRouteMetadata(description).With(c => c.WithDescription("Get the number of followers for the artist during the specified time period", tag) .WithRequestParameter("artistUri", description: "Spotify uri for the artist", loc: "query", required: true) .WithRequestParameter("startDate", description: "Startdate of entries, default 30 days ago if not specified", loc: "query", required: false) .WithRequestParameter("endDate", description: "Enddate of entries, default today if not specified", loc: "query", required: false) .WithDefaultResponse()); } } }