Skip to content

Commit 4cdec05

Browse files
committed
Fixed update URL scheme
1 parent 463249e commit 4cdec05

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

articles/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
610
POST /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" : "",

categories/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ API to create and get Joomla categories
55
```http
66
POST /index.php?option=com_api&app=categories&resource=categories&format=raw
77
```
8+
OR update an existing category
9+
```http
10+
POST /index.php?option=com_api&app=categories&resource=categories&format=raw&id=:id
11+
```
812

913
#### Request Params
1014

1115
| Param Name | Required | Type | Comment |
1216
| ---------- | -------- | ------- | :---- |
13-
| id | NO | INT | Used to update an category. If empty, will create a new category. |
1417
| title | YES | STRING | |
1518
| alias | NO | STRING | URL alias. Will be generated based on title if kept empty |
1619
| description | NO | STRING | |

0 commit comments

Comments
 (0)