public interface PublisherService
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getChildrenCount(java.lang.String uuid,
java.lang.String[] languages)
Get the number of Publisher’s children (museums, tours)
|
java.util.List<CompactMtgObject> |
getCompactChildren(java.lang.String uuid,
java.lang.String[] languages,
java.lang.String[] includes,
java.lang.String[] except,
java.lang.Long limit,
java.lang.Long offset,
java.lang.String sort_by)
Get Publisher children in compact form.
|
java.util.List<FullMtgObject> |
getFullChildren(java.lang.String uuid,
java.lang.String[] languages,
java.lang.String[] includes,
java.lang.String[] except,
java.lang.Long limit,
java.lang.Long offset,
java.lang.String sort_by,
java.lang.Boolean children_count)
Get Publisher children in full form.
|
java.util.List<java.lang.String> |
getLanguages(java.lang.String uuid,
java.lang.String[] languages)
Get Publisher languages by UUID, i.e.
|
FullMtgObject |
getPublisher(java.lang.String uuid,
java.lang.String[] languages,
java.lang.String[] includes,
java.lang.String[] except,
java.lang.String sort_by)
Get full Publisher object by UUID.
|
@GET(value="/mtg/publishers/{uuid}")
FullMtgObject getPublisher(@Path(value="uuid")
java.lang.String uuid,
@Query(value="languages")
java.lang.String[] languages,
@Query(value="includes")
java.lang.String[] includes,
@Query(value="except")
java.lang.String[] except,
@Query(value="sort_by")
java.lang.String sort_by)
uuid - UUID of the Publisher.languages - Array of languages which should have Publisher.includes - Array of sections which should be included to Publisher.except - Array of sections which should NOT be included to Publisher.sort_by - Defines results sorting: by popularity or by title.
By popularity (default) - sorts by popularity of tours, museums in descending order (similar to &sort_by=popularity:dsc), to return in ascending order indicate &sort_by=popularity:asc;
By title - sorts by localized title of tour, museum in ascending order (similar to &sort_by=title:asc), to return in descending order indicate &sort_by=title:dsc.
NOTE: If several languages are passed in the request and there are publisher’s tours, museums with several translations intercepted with passed languages, the sorting by title can be broken, in other words, sorting by title will correctly work when one language is passed via &languages= parameter.
@GET(value="/mtg/publishers/{uuid}/children?form=compact")
java.util.List<CompactMtgObject> getCompactChildren(@Path(value="uuid")
java.lang.String uuid,
@Query(value="languages")
java.lang.String[] languages,
@Query(value="includes")
java.lang.String[] includes,
@Query(value="except")
java.lang.String[] except,
@Query(value="limit")
java.lang.Long limit,
@Query(value="offset")
java.lang.Long offset,
@Query(value="sort_by")
java.lang.String sort_by)
uuid - UUID of the Publisher.languages - Array of requested languages, i.e. Publisher's children should have one of the requested languages.includes - Array of sections which should be included.except - Array of sections which should NOT be included.limit - Limit for pagination, defaults to 20.offset - Offset for pagination, defaults to 0.sort_by - Defines results sorting: by popularity or by title.
By popularity (default) - sorts by popularity of tours, museums in descending order (similar to &sort_by=popularity:dsc), to return in ascending order indicate &sort_by=popularity:asc;
By title - sorts by localized title of tour, museum in ascending order (similar to &sort_by=title:asc), to return in descending order indicate &sort_by=title:dsc.
NOTE: If several languages are passed in the request and there are publisher’s tours, museums with several translations intercepted with passed languages, the sorting by title can be broken, in other words, sorting by title will correctly work when one language is passed via &languages= parameter.
getFullChildren(String, String[], String[], String[], Long, Long, String, Boolean)@GET(value="/mtg/publishers/{uuid}/children?form=full")
java.util.List<FullMtgObject> getFullChildren(@Path(value="uuid")
java.lang.String uuid,
@Query(value="languages")
java.lang.String[] languages,
@Query(value="includes")
java.lang.String[] includes,
@Query(value="except")
java.lang.String[] except,
@Query(value="limit")
java.lang.Long limit,
@Query(value="offset")
java.lang.Long offset,
@Query(value="sort_by")
java.lang.String sort_by,
@Query(value="children_count_in_full_form")
java.lang.Boolean children_count)
@GET(value="/mtg/publishers/{uuid}/children/count")
java.lang.Integer getChildrenCount(@Path(value="uuid")
java.lang.String uuid,
@Query(value="languages")
java.lang.String[] languages)
uuid - UUID of the Publisher.languages - Array of requested languages. Publisher’s children should have one of the requested languages.@GET(value="/mtg/publishers/{uuid}/children/languages")
java.util.List<java.lang.String> getLanguages(@Path(value="uuid")
java.lang.String uuid,
@Query(value="languages")
java.lang.String[] languages)
uuid - UUID of the Publisher.languages - Array of requested languages. The resulting list of languages to be contained in this array.