Skip to content

Commit 9f6e0da

Browse files
[ADD] Add com_content.article custom field endpoints
1 parent 6358098 commit 9f6e0da

File tree

1 file changed

+258
-1
lines changed

1 file changed

+258
-1
lines changed

j4x-api-complete-collection.postman_collection.json

Lines changed: 258 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,263 @@
934934
},
935935
"response": []
936936
},
937+
{
938+
"name": "fields/content/article",
939+
"request": {
940+
"method": "GET",
941+
"header": [],
942+
"url": {
943+
"raw": "{{base_url}}/{{base_path}}/fields/content/article",
944+
"host": [
945+
"{{base_url}}"
946+
],
947+
"path": [
948+
"{{base_path}}",
949+
"fields",
950+
"articles",
951+
"article"
952+
]
953+
},
954+
"description": "Generated from a curl request: \ncurl -X GET '{{base_url}}/{{base_path}}/fields/content/article' -H 'X-Joomla-Token: {{auth_apikey}}'"
955+
},
956+
"response": []
957+
},
958+
{
959+
"name": "fields/content/article/{field_id}",
960+
"request": {
961+
"method": "GET",
962+
"header": [],
963+
"url": {
964+
"raw": "{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}",
965+
"host": [
966+
"{{base_url}}"
967+
],
968+
"path": [
969+
"{{base_path}}",
970+
"fields",
971+
"articles",
972+
"article",
973+
"{{field_id}}"
974+
]
975+
},
976+
"description": "Generated from a curl request: \ncurl -X GET '{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}' -H 'X-Joomla-Token: {{auth_apikey}}'"
977+
},
978+
"response": []
979+
},
980+
{
981+
"name": "fields/content/article/{field_id}",
982+
"request": {
983+
"method": "DELETE",
984+
"header": [],
985+
"url": {
986+
"raw": "{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}",
987+
"host": [
988+
"{{base_url}}"
989+
],
990+
"path": [
991+
"{{base_path}}",
992+
"fields",
993+
"articles",
994+
"article",
995+
"{{field_id}}"
996+
]
997+
},
998+
"description": "Generated from a curl request: \ncurl -X DELETE '{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}' -H 'X-Joomla-Token: {{auth_apikey}}'"
999+
},
1000+
"response": []
1001+
},
1002+
{
1003+
"name": "fields/content/article",
1004+
"request": {
1005+
"method": "POST",
1006+
"header": [
1007+
{
1008+
"key": "Content-Type",
1009+
"value": "application/json"
1010+
}
1011+
],
1012+
"body": {
1013+
"mode": "raw",
1014+
"raw": "{\"access\":1,\"context\":\"com_content.article\",\"default_value\":\"\",\"description\":\"\",\"group_id\":0,\"label\":\"article field\",\"language\":\"*\",\"name\":\"article-field\",\"note\":\"\",\"params\":{\"class\":\"\",\"display\":\"2\",\"display_readonly\":\"2\",\"hint\":\"\",\"label_class\":\"\",\"label_render_class\":\"\",\"layout\":\"\",\"prefix\":\"\",\"render_class\":\"\",\"show_on\":\"\",\"showlabel\":\"1\",\"suffix\":\"\"},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}"
1015+
},
1016+
"url": {
1017+
"raw": "{{base_url}}/{{base_path}}/fields/content/article",
1018+
"host": [
1019+
"{{base_url}}"
1020+
],
1021+
"path": [
1022+
"{{base_path}}",
1023+
"fields",
1024+
"articles",
1025+
"article"
1026+
]
1027+
},
1028+
"description": "Generated from a curl request: \ncurl -X POST '{{base_url}}/{{base_path}}/fields/content/article' -H 'X-Joomla-Token: {{auth_apikey}}' -H 'Content-Type: application/json' -d '{\"access\":1,\"context\":\"com_content.article\",\"default_value\":\"\",\"description\":\"\",\"group_id\":0,\"label\":\"article field\",\"language\":\"*\",\"name\":\"article-field\",\"note\":\"\",\"params\":{\"class\":\"\",\"display\":\"2\",\"display_readonly\":\"2\",\"hint\":\"\",\"label_class\":\"\",\"label_render_class\":\"\",\"layout\":\"\",\"prefix\":\"\",\"render_class\":\"\",\"show_on\":\"\",\"showlabel\":\"1\",\"suffix\":\"\"},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}'"
1029+
},
1030+
"response": []
1031+
},
1032+
{
1033+
"name": "fields/content/article/{field_id}",
1034+
"request": {
1035+
"method": "PATCH",
1036+
"header": [
1037+
{
1038+
"key": "Content-Type",
1039+
"value": "application/json"
1040+
}
1041+
],
1042+
"body": {
1043+
"mode": "raw",
1044+
"raw": "{\"title\":\"new article field\",\"name\":\"article-field\",\"label\":\"article field\",\"default_value\":\"\",\"type\":\"text\",\"note\":\"\",\"description\":\"Some New Text\"}"
1045+
},
1046+
"url": {
1047+
"raw": "{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}",
1048+
"host": [
1049+
"{{base_url}}"
1050+
],
1051+
"path": [
1052+
"{{base_path}}",
1053+
"fields",
1054+
"articles",
1055+
"article",
1056+
"{{field_id}}"
1057+
]
1058+
},
1059+
"description": "Generated from a curl request: \ncurl -X PATCH '{{base_url}}/{{base_path}}/fields/content/article/{{field_id}}' -H 'X-Joomla-Token: {{auth_apikey}}' -H 'Content-Type: application/json' -d '{\"title\":\"new article field\",\"name\":\"article-field\",\"label\":\"article field\",\"default_value\":\"\",\"type\":\"text\",\"note\":\"\",\"description\":\"Some New Text\"}'"
1060+
},
1061+
"response": []
1062+
},
1063+
{
1064+
"name": "fields/groups/content/article",
1065+
"request": {
1066+
"method": "GET",
1067+
"header": [],
1068+
"url": {
1069+
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article",
1070+
"host": [
1071+
"{{base_url}}"
1072+
],
1073+
"path": [
1074+
"{{base_path}}",
1075+
"fields",
1076+
"groups",
1077+
"articles",
1078+
"article"
1079+
]
1080+
},
1081+
"description": "Generated from a curl request: \ncurl -X GET '{{base_url}}/{{base_path}}/fields/groups/content/article' -H 'X-Joomla-Token: {{auth_apikey}}'"
1082+
},
1083+
"response": []
1084+
},
1085+
{
1086+
"name": "fields/groups/content/article/{group_id}",
1087+
"request": {
1088+
"method": "GET",
1089+
"header": [],
1090+
"url": {
1091+
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}",
1092+
"host": [
1093+
"{{base_url}}"
1094+
],
1095+
"path": [
1096+
"{{base_path}}",
1097+
"fields",
1098+
"groups",
1099+
"articles",
1100+
"article",
1101+
"{{group_id}}"
1102+
]
1103+
},
1104+
"description": "Generated from a curl request: \ncurl -X GET '{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}' -H 'X-Joomla-Token: {{auth_apikey}}'"
1105+
},
1106+
"response": []
1107+
},
1108+
{
1109+
"name": "fields/groups/content/article/{group_id}",
1110+
"request": {
1111+
"method": "DELETE",
1112+
"header": [],
1113+
"url": {
1114+
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}",
1115+
"host": [
1116+
"{{base_url}}"
1117+
],
1118+
"path": [
1119+
"{{base_path}}",
1120+
"fields",
1121+
"groups",
1122+
"articles",
1123+
"article",
1124+
"{{group_id}}"
1125+
]
1126+
},
1127+
"description": "Generated from a curl request: \ncurl -X DELETE '{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}' -H 'X-Joomla-Token: {{auth_apikey}}'"
1128+
},
1129+
"response": []
1130+
},
1131+
{
1132+
"name": "fields/groups/content/article",
1133+
"request": {
1134+
"method": "POST",
1135+
"header": [
1136+
{
1137+
"key": "Content-Type",
1138+
"value": "application/json"
1139+
}
1140+
],
1141+
"body": {
1142+
"mode": "raw",
1143+
"raw": "{\"access\":1,\"context\":\"com_content.article\",\"default_value\":\"\",\"description\":\"\",\"group_id\":0,\"label\":\"article field\",\"language\":\"*\",\"name\":\"article-field3\",\"note\":\"\",\"params\":{\"class\":\"\",\"display\":\"2\",\"display_readonly\":\"2\",\"hint\":\"\",\"label_class\":\"\",\"label_render_class\":\"\",\"layout\":\"\",\"prefix\":\"\",\"render_class\":\"\",\"show_on\":\"\",\"showlabel\":\"1\",\"suffix\":\"\"},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}"
1144+
},
1145+
"url": {
1146+
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article",
1147+
"host": [
1148+
"{{base_url}}"
1149+
],
1150+
"path": [
1151+
"{{base_path}}",
1152+
"fields",
1153+
"groups",
1154+
"articles",
1155+
"article"
1156+
]
1157+
},
1158+
"description": "Generated from a curl request: \ncurl -X POST '{{base_url}}/{{base_path}}/fields/groups/content/article' -H 'X-Joomla-Token: {{auth_apikey}}' -H 'Content-Type: application/json' -d '{\"access\":1,\"context\":\"com_content.article\",\"default_value\":\"\",\"description\":\"\",\"group_id\":0,\"label\":\"article field\",\"language\":\"*\",\"name\":\"article-field3\",\"note\":\"\",\"params\":{\"class\":\"\",\"display\":\"2\",\"display_readonly\":\"2\",\"hint\":\"\",\"label_class\":\"\",\"label_render_class\":\"\",\"layout\":\"\",\"prefix\":\"\",\"render_class\":\"\",\"show_on\":\"\",\"showlabel\":\"1\",\"suffix\":\"\"},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}'"
1159+
},
1160+
"response": []
1161+
},
1162+
{
1163+
"name": "fields/groups/content/article/{group_id}",
1164+
"request": {
1165+
"method": "PATCH",
1166+
"header": [
1167+
{
1168+
"key": "Content-Type",
1169+
"value": "application/json"
1170+
}
1171+
],
1172+
"body": {
1173+
"mode": "raw",
1174+
"raw": "{\"title\":\"new article group\",\"note\":\"\",\"description\":\"new description\"}"
1175+
},
1176+
"url": {
1177+
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}",
1178+
"host": [
1179+
"{{base_url}}"
1180+
],
1181+
"path": [
1182+
"{{base_path}}",
1183+
"fields",
1184+
"groups",
1185+
"articles",
1186+
"article",
1187+
"{{group_id}}"
1188+
]
1189+
},
1190+
"description": "Generated from a curl request: \ncurl -X PATCH '{{base_url}}/{{base_path}}/fields/groups/content/article/{{group_id}}' -H 'X-Joomla-Token: {{auth_apikey}}' -H 'Content-Type: application/json' -d '{\"title\":\"new article group\",\"note\":\"\",\"description\":\"new description\"}'"
1191+
},
1192+
"response": []
1193+
},
9371194
{
9381195
"name": "content/articles",
9391196
"request": {
@@ -2816,4 +3073,4 @@
28163073
}
28173074
],
28183075
"protocolProfileBehavior": {}
2819-
}
3076+
}

0 commit comments

Comments
 (0)