Joomla_API接口项目
Joomla4 webservie 接口
复制页面
Joomla_API接口项目
Joomla4 webservie 接口
使用说明
文章
content/articles
content/articles/{article_id}
content/articles/{article_id}
content/articles
content/articles/{article_id}
banners
GET
banners/{banner_id}
GET
banners/{banner_id}
DELETE
banners
POST
banners/{banner_id}
PATCH
banners/clients
GET
banners/clients/{client_id}
GET
banners/clients/{client_id}
DELETE
banners/clients
POST
banners/clients/{client_id}
PATCH
banners/categories
GET
banners/categories/{category_id}
GET
banners/categories/{category_id}
DELETE
banners/categories
POST
banners/categories/{category_id}
PATCH
banners/contenthistory/{banner_id}
GET
banners/contenthistory/keep/{contenthistory_id}
PATCH
banners/contenthistory/{contenthistory_id}
DELETE
config/application
GET
config/application
PATCH
config/{component_name}
GET
config/application
PATCH
contacts
GET
contacts/{contact_id}
GET
contacts/{contact_id}
DELETE
contact
POST
contacts/{contact_id}
PATCH
contacts/form/{contact_id}
POST
fields/contacts/contact
GET
fields/contacts/contact/{field_id}
GET
fields/contacts/contact/{field_id}
DELETE
fields/contacts/contact
POST
fields/contacts/contact/{field_id}
PATCH
fields/groups/contacts/contact
GET
fields/groups/contacts/contact/{group_id}
GET
fields/groups/contacts/contact/{group_id}
DELETE
fields/groups/contacts/contact
POST
fields/groups/contacts/contact/{group_id}
PATCH
fields/contacts/categories
GET
fields/contacts/categories/{field_id}
GET
fields/contacts/categories/{field_id}
DELETE
fields/contacts/categories
POST
fields/contacts/categories/{field_id}
PATCH
fields/content/articles
GET
fields/content/articles/{field_id}
GET
fields/content/articles/{field_id}
DELETE
fields/content/articles
POST
fields/content/articles/{field_id}
PATCH
fields/groups/content/articles
GET
fields/groups/content/articles/{group_id}
GET
fields/groups/content/articles/{group_id}
DELETE
fields/groups/content/articles
POST
fields/groups/content/articles/{group_id}
PATCH
fields/content/categories
GET
fields/content/categories/{field_id}
GET
fields/content/categories/{field_id}
DELETE
fields/content/categories
POST
fields/content/categories/{field_id}
PATCH
fields/users
GET
fields/users/{field_id}
GET
fields/users/{field_id}
DELETE
fields/users
POST
fields/users/{field_id}
PATCH
fields/groups/users
GET
fields/groups/users/{group_id}
GET
fields/groups/users/{group_id}
DELETE
fields/groups/users
POST
fields/groups/users/{group_id}
PATCH
languages
GET
languages
POST
languages/content
GET
v1/languages/content/{language_id}
GET
languages/content/{language_id}
DELETE
languages/content
POST
languages/content/{language_id}
PATCH
languages/overrides/{app}/{lang_code}
GET
languages/overrides/{app}/{lang_code}/{constant_id}
GET
languages/overrides/{app}/{lang_code}/{constant_id}
DELETE
languages/overrides/{app}/{lang_code}
POST
languages/overrides/{app}/{lang_code}/{constant_id}
PATCH
languages/overrides/search
POST
languages/overrides/search/cache/refresh
POST
menus/{app}
GET
menus/{app}/{menu_id}
GET
menus/{app}/{menu_id}
DELETE
menus/{app}
POST
menus/{app}/{menu_id}
PATCH
menus/{app}/items/types
GET
menus/{app}/items
GET
menus/{app}/items/{menu_item_id}
GET
menus/{app}/items/{menu_item_id}
DELETE
menus/{app}/items
POST
menus/{app}/items/{menu_item_id}
PATCH
messages
GET
messages/{message_id}
GET
messages/{message_id}
DELETE
messages
POST
messages/{message_id}
PATCH
modules/types/{app}
GET
modules/{app}
GET
modules/{app}/{module_id}
GET
modules/{app}/{module_id}
DELETE
modules/{app}
POST
modules/{app}/{module_id}
PATCH
newsfeeds/feeds
GET
newsfeeds/feeds/{feed_id}
GET
newsfeeds/feeds/{feed_id}
DELETE
newsfeeds/feeds
POST
newsfeeds/feeds/{feed_id}
PATCH
privacy/requests
GET
privacy/requests/{request_id}
GET
privacy/requests/export/{request_id}
GET
privacy/request
POST
privacy/consents
GET
privacy/consents/{consent_id}
GET
privacy/consents/{consent_id}
DELETE
redirects
GET
redirects/{redirect_id}
GET
redirects/{redirect_id}
DELETE
redirect
POST
redirects/{redirect_id}
PATCH
tags
GET
tags/{tag_id}
GET
tags/{tag_id}
DELETE
tags
POST
tags/{tag_id}
PATCH
templates/styles/{app}
GET
templates/styles/{app}/{template_style_id}
GET
templates/styles/{app}/{template_style_id}
DELETE
templates/styles/{app}
POST
templates/styles/{app}/{template_style_id}
PATCH
users
GET
users/{user_id}
GET
users/{user_id}
DELETE
users
POST
users/{user_id}
PATCH
Joomla4 webservie 接口
复制页面
使用说明
API操作的数据源网站为j4.demo.joomlachina.cn
#
可以通过本页提供的API接口操作网站。
所有的操作都会实时的更新在源网站。可以通过访问
http://j4.demo.joomlachina.cn
查看API操作的结果
请注意,在网页调试中可能会出现很奇怪的问题,此时你可以试用Apifox或者其他的客户端工具尝试调试,一般问题都会消失
调试前需设置两个参数
#
1,设置 base_path
#
点击调试后,在调试页面会提示需要设置环境变量base_path,点击去设置,在弹窗中设置环境变量
1.
base_path 的值为 api/index.php/v1
如图:
2,设置Auth
#
获取令牌
#
登录网站后台
在右上角点击个人信息,进入个人信息页面
在个人信息页面,点击API令牌选项卡(注意普通用户可能不会出现此选项卡),获得令牌
设置Auth信息
#
1.
在auth选项卡下将类型设置为API key
2.
添加位置 设置为 Header(默认就是)
3.
将key 设置为:X-Joomla-Token
4.
将Value设置为:设置为上一步获得令牌
如图:
设置完成后即可进行在线调试了
#
下面是获取文章列表的接口返回的结果截图:
修改于
2022-09-20 00:59:34
下一页
content/articles