在OpenAPI规范中,是否有任何行业标准将Resources(ResourceDefinitions)与相应的端点进行分组?目前,我正在使用POST方法的路径,将它们视为Resources,并将其与各个端点进行比较,但是缺少一些端点。我还尝试过使用标签对它们进行分组,但是标签并非每种资源都唯一。
这里是代码:ep是Endpoint List的实例,res是ResourceDefinition List的
if (StringUtils.startsWithIgnoreCase(ep.getEndpoint(), StringUtils.substringAfter(res.getPath(), ":"))) {
endpoint.setEndpoint(ep.getEndpoint());
endpoint.setMethod(ep.getMethod());
endpoint.setSummary(ep.getSummary());
endpoint.setDescription(ep.getDescription());}
我需要知道的是,将端点分组到其资源下的标准是什么?