How to create a custom asset-attributes.hbs for each new artifact for the STORE?

眉间皱痕 提交于 2019-12-02 00:53:28

As far as I understand your in the development phase of the project that you have to create registry extensions(RXTs) and showing up the data in G-Reg Store. As far as I know there is no easy dynamic way that you can do this, either you have to extend the default hbs files. Like you have done using Malintha's blog. This is okay if there is a minor change to be done, However this is not the recommended way because if there is a migration to do such as moving to all new WSO2 G-Reg 5.3.0 you might face lot of trouble if you updated the out of the box files in G-Reg 5.2.0, Therefore I suggest you to write asset extensions(GREG_HOME/repository/deployment/server/jaggeryapps/store/extensions/assets) for each and every rxt that you are going to introduce. There is plenty of blog posts that can help you.

Please find the below list of blog posts(I will update the list if I found any).

  1. Adding a New Asset Type

  2. How to view the json payload sent to the Store UI in GREG 5.1.0

  3. How to extend an asset's store view in WSO2 GREG 5.1.0

  4. WSO2GREG-5.2.0- WRITING EXTENSION TO REPLICATE MORE ARTIFACT METADATA IN STORE

  5. Overriding default "look and feel" of GREG - 5.3.0

Note:

  • There is no much difference between 5.1.0 and 5.2.0.(5.2.0 is more stable)

  • You can start(learn) creating a new extension by simply extending restservice.rxt and the relevant asset extension(GREG_HOME/repository/deployment/server/jaggeryapps/store/extensions/assets/restservice), I prefer you to use this blog post and start from there.

  • If there is a lot of development to be done I prefer you to seek help from WSO2 experts from they're official portal, if not you can always stick to stackoverflow.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!