我正在尝试基于累积性开发微服务。 我正在关注此https://cumulocity.com/guides/microservice-sdk/java/。 我能够创建具有此响应的应用程序
"availability": "MARKET",
"id": "23",
"key": "TESTMICRO-microservice-key",
"manifest": {
"imports": [],
"noAppSwitcher": true
},
"name": "TESTMICRO",
"owner": {
"self": "my_tenant/tenant/tenants/management",
"tenant": {
"id": "management"
}
},
"requiredRoles": [
"ROLE_INVENTORY_READ"
],
"roles": [
"ROLE_CUSTOM_MICROSERVICE"
],
"self": "my_tenant/application/applications/23",
"type": "MICROSERVICE"
}
尽管如此,当我尝试使用GET URL / application / applications / 23 / bootstrapUser时,它仍然返回404错误。
有人可以帮助我吗?
答案 0 :(得分:0)
您可能需要将应用程序订阅给租户:
POST {{url}}/tenant/tenants/{{tenant}}/applications
身体
{
"application": {
"id": "{APPLICATION_ID}"
}
}