GET | /libraryNavTopics | Use to get library topics |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ASH.ResourceLibrary.Interfaces.ServiceModels;
using ASH.ResourceLibrary.Interfaces.Models;
namespace ASH.ResourceLibrary.Interfaces.Models
{
public partial class LibraryNavTopic
{
public virtual string Name { get; set; }
public virtual ICollection<TopicItem> Topics { get; set; }
}
public partial class TopicItem
{
public virtual string Id { get; set; }
public virtual string Title { get; set; }
public virtual bool IsNavItem { get; set; }
public virtual bool IsVisible { get; set; }
}
}
namespace ASH.ResourceLibrary.Interfaces.ServiceModels
{
public partial class BasicResourceLibraryRequest
{
public virtual int ResourceLibraryMemberId { get; set; }
}
public partial class LibraryNavTopicsRequest
: BasicResourceLibraryRequest
{
public virtual bool DigitalFitness { get; set; }
}
public partial class LibraryNavTopicsResponse
{
public virtual ICollection<LibraryNavTopic> LibraryNavTopics { get; set; }
}
}
C# LibraryNavTopicsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /libraryNavTopics HTTP/1.1 Host: resourcelibrary.api.ashcompanies.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"libraryNavTopics":null}