Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
any, all, not

Specifies the media items to include based on assigned tags. For example, the URL

http://127.0.0.1/web/feed/myFeed?any=ajax,football

would return all media items containing the tags ajax or football.

from, to

Specifies the number of results to return. For example, the URL

http://127.0.0.1/web/feed/myFeed?from=1&to=5

would return items 1 through 5.

sort

Sorts the results according to the following parameters:

  • CREATION_DATE
  • MOST_VIEWED
  • MOST_REACTIONS
  • PUBLICATION_DATE
  • VOTE_AVERAGE
  • WEBTITLE
  • LAST_POST
  • MODIFICATION_DATE

For example, the URL

http://127.0.0.1/web/feed/myFeed?sort=PUBLICATION_DATE&any=sports

would return all media items with the tag sports sorted according to publication date.

order

Sorts the results in ascending (ASC) or descending (DESC) order. For example, the URL

http://127.0.0.1/web/feed/myFeed?any=sports&order=ASC

would return all media items with the tag sports sorted in ascending order.

contenttypes

Specifies the media items to include based on their type. The type options are:

  • article
  • image  (image content item)

  • page (saved to the Content Repository)

  • download

  • document

  • <any custom made content types>  (the values can be found via a query in the wmjellycontenttype table the "value" column)

For example, the URL

http://127.0.0.1/web/feed/myFeed?contenttypes=article

would return all media items of type article. For custom media types use the identifier provided by the application manager and/or developer.

...