Skip to content

Commit

Permalink
[FIX] Fix article field group had incorrect structure. Add article fi…
Browse files Browse the repository at this point in the history
…eld fieldparams too.
  • Loading branch information
alexandreelise committed Dec 2, 2021
1 parent 9f6e0da commit 24b8da7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions j4x-api-complete-collection.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@
],
"body": {
"mode": "raw",
"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\"}"
"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\":\"\"},\"fieldparams\":{\"filter\":\"alnum\",\"maxlength\":40},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}"
},
"url": {
"raw": "{{base_url}}/{{base_path}}/fields/content/article",
Expand All @@ -1025,7 +1025,7 @@
"article"
]
},
"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\"}'"
"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\":\"\"},\"fieldparams\":{\"filter\":\"alnum\",\"maxlength\":40},\"required\":0,\"state\":1,\"title\":\"article field\",\"type\":\"text\"}'"
},
"response": []
},
Expand Down Expand Up @@ -1140,7 +1140,7 @@
],
"body": {
"mode": "raw",
"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\"}"
"raw": "{\"access\":1,\"context\":\"com_content.article\",\"description\":\"\",\"language\":\"*\",\"note\":\"\",\"params\":{\"display_readonly\":\"1\"},\"required\":0,\"state\":1,\"title\":\"article field group\",\"checked_out\":0,\"created_by\":0}"
},
"url": {
"raw": "{{base_url}}/{{base_path}}/fields/groups/content/article",
Expand All @@ -1155,7 +1155,7 @@
"article"
]
},
"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\"}'"
"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\",\"description\":\"\",\"language\":\"*\",\"note\":\"\",\"params\":{\"display_readonly\":\"1\"},\"required\":0,\"state\":1,\"title\":\"article field group\",\"checked_out\":0,\"created_by\":0}'"
},
"response": []
},
Expand Down

0 comments on commit 24b8da7

Please # to comment.