GET | /libraryNavTopics | Use to get library topics |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class LibraryNavTopicsRequest extends BasicResourceLibraryRequest
{
public Boolean digitalFitness = null;
public Boolean isDigitalFitness() { return digitalFitness; }
public LibraryNavTopicsRequest setDigitalFitness(Boolean value) { this.digitalFitness = value; return this; }
}
public static class BasicResourceLibraryRequest
{
public Integer resourceLibraryMemberId = null;
public Integer getResourceLibraryMemberId() { return resourceLibraryMemberId; }
public BasicResourceLibraryRequest setResourceLibraryMemberId(Integer value) { this.resourceLibraryMemberId = value; return this; }
}
public static class LibraryNavTopicsResponse
{
public ArrayList<LibraryNavTopic> libraryNavTopics = null;
public ArrayList<LibraryNavTopic> getLibraryNavTopics() { return libraryNavTopics; }
public LibraryNavTopicsResponse setLibraryNavTopics(ArrayList<LibraryNavTopic> value) { this.libraryNavTopics = value; return this; }
}
public static class LibraryNavTopic
{
public String name = null;
public ArrayList<TopicItem> topics = null;
public String getName() { return name; }
public LibraryNavTopic setName(String value) { this.name = value; return this; }
public ArrayList<TopicItem> getTopics() { return topics; }
public LibraryNavTopic setTopics(ArrayList<TopicItem> value) { this.topics = value; return this; }
}
public static class TopicItem
{
public String id = null;
public String title = null;
public Boolean isNavItem = null;
public Boolean isVisible = null;
public String getId() { return id; }
public TopicItem setId(String value) { this.id = value; return this; }
public String getTitle() { return title; }
public TopicItem setTitle(String value) { this.title = value; return this; }
public Boolean getIsNavItem() { return isNavItem; }
public TopicItem setIsNavItem(Boolean value) { this.isNavItem = value; return this; }
public Boolean getIsVisible() { return isVisible; }
public TopicItem setIsVisible(Boolean value) { this.isVisible = value; return this; }
}
}
Java LibraryNavTopicsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <LibraryNavTopicsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.ServiceModels"> <LibraryNavTopics xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASH.ResourceLibrary.Interfaces.Models" i:nil="true" /> </LibraryNavTopicsResponse>