-
Notifications
You must be signed in to change notification settings - Fork 6
api_articles_id_content
Nikola Hardi edited this page Feb 11, 2015
·
6 revisions
Deals with content for particular article, and Article ID is extracted from the URL.
/api/v1/articles/:id/content
Implements: GET and POST
Retrieves IDs for content per language with given max count (also per language).
client ---> server
{
"language_id" : 1,
}
client <--- server { "verbosity" : 0 }
[
{ "language_id" : 1,
"id" : 512,
"revision" : 12,
"revision_author" : 13,
"revision_time" : 123152,
"content" : "really long long content\n...",
},
{ "language_id" : 2,
"id" : 513,
"revision" : 2,
"revision_author" : 13,
"revision_time" : 123172,
"content" : "really long long content 2\n...",
},
]
client <--- server { "verbosity" : 1 }
[
{ "language_id" : 1,
"id" : 512,
"revision" : 12,
"revision_author" : {"id" : 13, "name" : "Somebody"},
"time" : 123152,
"content" : "really long long content\n...",
},
{ "language_id" : 2,
"id" : 513,
"revision" : 2,
"revision_author" : {"id" : 13, "name" : "Nobody"},
"time" : 123172,
"content" : "really long long content 2\n...",
},
]Creates new content revision for given article ID (from URL) and given language.
--->
{
"language" : "sr_lat",
"content" : "actual payload which needs to be posted...",
}
<--
{
"status" : 0,
"id" : 511,
}