Data Object: Article

Get Article


{{ data.article.get(:alias) }}

Parameter Type Description
alias string Article alias

HTTP/1.1 200 OK
{
    id: 2,
    alias: "first-blog-article",
    tag: 1,
    languageId: 1,
    languagePrefix: "en",
    thumbnail: 'https://cdn.storech.com/photo.png',
    title: "First Blog Article",
    content: "It's a first blog article",
    metaKeywords: "blog, article, storech",
    metaDescription: "First blog article",
    created: "2017-03-05 16:00",
    updated: "2017-03-06 20:00"
}

or

false

Parameter Type Description
id int Article identifier
alias string Article alias
tag int Article tag
languageId int Language idetifier
languagePrefix string Language prefix
thumbnail string Article thumbnail
title string Article title
content string Article content
metaKeywords string Article meta keywords
metaDescription string Article meta description
created string Article creation date
updated string Article modified date


Get Article List


{{ data.article.list({}) }}

Parameter Type Description
limit int Limit for listing
recently boolean Order by recently articles
random boolean Order by random articles
not-article-alias string Without article by identifier
only-news boolean Articles which have tag = 1
search string Search keyword for article title

HTTP/1.1 200 OK
{
    {
         id: 2,
         alias: "first-blog-article",
         tag: 1,
         languageId: 1,
         languagePrefix: "en",
         thumbnail: 'https://cdn.storech.com/photo.png',
         title: "First Blog Article",
         content: "It's a first blog article",
         metaKeywords: "blog, article, storech",
         metaDescription: "First blog article",
         created: "2017-03-05 16:00",
         updated: "2017-03-06 20:00"
    }
    ...
}

or

[]

Parameter Type Description
id int Article identifier
alias string Article alias
tag int Article tag
languageId int Language idetifier
languagePrefix string Language prefix
thumbnail string Article thumbnail
title string Article title
content string Article content
metaKeywords string Article meta keywords
metaDescription string Article meta description
created string Article creation date
updated string Article modified date