-
Notifications
You must be signed in to change notification settings - Fork 6
api_articles_id_content_id
Nikola Hardi edited this page Feb 11, 2015
·
2 revisions
Retrieves content for given Article ID and Article Content ID (both extracted from URL) only if Article Content belongs to the given Article ID.
Implements only GET method.
client ---> server
{
"language_id" :
}
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...",
},
]
POST
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,
}