WSO2 API Manager:对 API 进行分类和分组 [英] WSO2 API Manager: Categorising and grouping APIs
问题描述
从 WSO2 AM 1.10 迁移到 2.0.不会提及我必须克服的所有障碍.但这一点很明显,我真的很震惊,在发布新版本之前,开发人员忽略/忽略了这一点.让我们忽略 CSRF 的所有错误,但是这个也很糟糕:分组和分类.WSO2 文档自上次发布以来一直没有更新,这有点令人遗憾.
Migrating from WSO2 AM 1.10 to 2.0. Won't mention all the obstacles I've had to overcame. But this one is pretty obvious and I am really stunned that this went overlooked/ignored by the developers before releasing the new version. Let's ignore all the bugs with CSRF, BUT this one sucks arse, too: Grouping and categorizing. WSO2 documents have not been updated since the last release, which is kinda sad.
BUG 1:分组不起作用,除非tags"目录下的所有子目录(在 Carbon 中)都是小写的,而不管原始名称/带有 -group 的标签如何就足够了.
BUG 1: Grouping does not work unless all the subdirs (in Carbon) under "tags" dir are lowercased regardless of the original names / tags with -group suffices.
BUG 2:带有-group"后缀的标签显示在左侧面板中(标签云").嗯.
BUG 2: The tags with "-group" suffix are displayed in the left panel (the "tag cloud"). Ehm.
BUG 3:商店中[显示]的组标签是小写的,并且包含-group"就足够了(上面的两个错误的混合).
BUG 3: Group tags [displayed] at the Store are lowercased and contain "-group" suffices (mixture of both bugs from above).
BUG 4:组不支持空格(在标签云中).单击时,组显示为空.
BUG 4: Groups do not support white spaces (in the tag cloud). When clicked, the groups appear empty.
有什么想法/解决方法吗?
Any ideas / workarounds?
推荐答案
如您所见,当您使用大写或空格定义 API 类别时,AM 2.0.0 中存在一个错误.
As you observed,there's a bug in AM 2.0.0 when you defined the API categories with upper-case or with white spaces.
我创建了公共 jira[1] 来跟踪进度并在下一个发布版本之前修复.
I have created the public jira[1] to track the progress and fix by next coming release.
我检查了避免这些问题的可能性,发现在标签云中显示类别名称可以通过子主题避免,而其他两个问题则使用大写 &必须从代码级别修复空格.
I checked the possibilities of avoiding these issues and found that showing the category names in tag cloud can be avoid by a sub theme while other two issues with upper case & white spaces have to be fixed from code level.
要修复标签云中显示的类别,您可以下载 [1] 中附加的 template.jag 并将其添加到子主题文件夹位置AM/repository/deployment/server/jaggeryapps/store/site/themes/{your_subtheme_name}/templates/tag/tag-cloud"作为子主题模板文件,带有以下[2].
To fix ,categories showing in tag cloud,you can download the template.jag attached in [1] and add it to sub theme folder location "AM/repository/deployment/server/jaggeryapps/store/site/themes/{your_subtheme_name}/templates/tag/tag-cloud" as a sub theme template file with following [2].
[1] https://wso2.org/jira/browse/APIMANAGER-5425一个>[2] https://docs.wso2.com/display/AM200/Adding+a+New+API+Store+Theme#AddingaNewAPIStoreTheme-Writingasubthemeofthemaintheme
这篇关于WSO2 API Manager:对 API 进行分类和分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!