@@ -2,6 +2,10 @@ API to create and get content
22
33## Create / Update Content
44
5+ ``` http
6+ POST /index.php?option=com_api&app=content&resource=articles&format=raw
7+ ```
8+ OR update an existing article
59``` http
610POST /index.php?option=com_api&app=content&resource=articles&format=raw
711```
@@ -10,7 +14,6 @@ POST /index.php?option=com_api&app=content&resource=articles&format=raw
1014
1115| Param Name | Required | Type | Comment |
1216| ---------- | -------- | ------- | :---- |
13- | id | NO | INT | Used to update an article. If empty, will create a new article. |
1417| title | YES | STRING | |
1518| alias | NO | STRING | URL alias. Will be generated based on title if kept empty |
1619| introtext | YES | STRING | |
@@ -42,7 +45,7 @@ GET /index.php?option=com_api&app=content&resource=articles&format=raw
4245| limitstart | NO | Defaults to 0 |
4346| filters | NO | Key value pairs of values to filter on |
4447| search | NO | search key for searching article titles |
45- | fields | NO | Defaults to id, title, created, state , created_by, catid |
48+ | fields | NO | Defaults to id, title, modified , created_by, catid |
4649
4750
4851#### Response Params
@@ -63,7 +66,7 @@ GET /index.php?option=com_api&app=content&resource=articles&format=raw&id=:id
6366
6467| Param Name | Required | Comment |
6568| ---------- | -------- | :------ |
66- | fields | NO | Defaults to id, title, created, state , created_by, catid |
69+ | fields | NO | Defaults to id, title, modified , created_by, catid |
6770
6871
6972#### Response Params
@@ -98,6 +101,7 @@ The actual contents of the article object will vary based on which fields are re
98101 "access" : " " ,
99102 "featured" : " " ,
100103 "language" : " " ,
104+ " hits: " ",
101105 "created_by" : {
102106 "id" : " " ,
103107 "name" : " " ,
0 commit comments