当我们设计一个新的休息api时,如何通过商店ui将WSO2 Auth类型设置为"none"

How to make WSO2 Auth type as "none" through store ui when we design a new rest api

我有一个可用的 REST API link http://192.168.1.5:8080/SpringRestHibernate/student/1

我已经在同一台机器上下载了 WSO2 API 管理器工具包,wso2server.sh 是 运行,我正在尝试通过 [= 达到上面提到的其余 api 31=] 经理 url.

即使我在 API 控制台中提供了正确的令牌,我也会收到以下响应。 未提供所需的 OAuth 凭据。确保您的 API 调用具有 header:"Authorization: Bearer ACCESS_TOKEN"

任何人都可以帮助我如何删除通过 UI 设置的身份验证。

在编辑 API 时在 api 发布者中转到设计选项卡(第一个选项卡),然后在 API 定义下单击编辑源。在源代码中,您 API 的每个资源都会有一个 x-auth-type 属性,将值更改为 none 并且 API 将不再需要身份验证。

之前:

/CheckPhoneNumber:
get:
  responses:
    '200':
      description: ''
  x-auth-type: Application & Application User
  x-throttling-tier: Unlimited
post:
  responses:
    '200':
      description: ''
  x-auth-type: Application & Application User
  x-throttling-tier: Unlimited

禁用身份验证后:

/CheckPhoneNumber:
get:
  responses:
    '200':
      description: ''
  x-auth-type: None
  x-throttling-tier: Unlimited
post:
  responses:
    '200':
      description: ''
  x-auth-type: None
  x-throttling-tier: Unlimited