请求获取Camunda用户ID的REST API及Platform REST API使用指引
Camunda 获取用户ID的REST API及Platform API指引
获取用户ID的REST API用法
- 查询单个用户ID(已知用户名时):
请求方式:GET
接口路径:/engine-rest/user/{username}/profile
示例响应(包含用户ID):{ "id": "user123", "username": "demo", "firstName": "Demo", "lastName": "User", "email": "demo@example.com" } - 批量查询用户列表(含ID):
请求方式:GET
接口路径:/engine-rest/user
可添加过滤参数缩小范围,比如/engine-rest/user?firstName=Demo,响应为用户对象数组,每个对象都包含id字段。
Platform REST API定位指引
- 默认根路径:Camunda Platform部署完成后,REST API的根地址为
http://<部署地址>:<端口>/engine-rest,本地部署通常是http://localhost:8080/engine-rest - 内置文档访问:登录Camunda Web管理界面后,进入Admin模块,左侧菜单选择「API」即可查看完整REST API文档;本地部署也可直接访问
http://localhost:8080/engine-rest/docs打开Swagger交互式文档,所有API的参数、响应示例都有详细说明 - 身份验证:调用API需携带身份凭证,常用方式为Basic Auth(使用Camunda登录账号密码),或通过
/engine-rest/auth/user/{username}/login接口获取令牌后使用令牌认证
内容的提问来源于stack exchange,提问作者No04 No04
相关产品推荐
相关产品推荐

