WSO2 AM 培训文档问题
WSO2 AM Training Doc Issue
我正在研究 WSO2 API 经理开发人员基础培训文档 (LabkitAPIM200DF.pdf)。可以从 https://github.com/wso2/WSO2-Training/releases/tag/APIM2.0.0DF、
下载
我在这里尝试执行第 53 页中的 Publisher API。我按照所有步骤进行操作,但出现禁止错误。
1.在[APIM_HOME]/bin
文件夹中创建payload.json
文件,内容如下
并保存:
{
"callbackUrl": "www.google.lk",
"clientName": "rest_api_publisher",
"tokenScope": "Production",
"owner": "admin",
"grantType": "password refresh_token",
"saasApp": true
}
2. 打开命令行界面。
3. 使用命令导航到 {APIM_HOME/bin] 文件夹。
4.给客户端注册的cURL命令。 (确保 API Manager Server
在执行此操作之前是 运行)。
curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
"Content-Type: application/json" -d
@payload.json http://localhost:9763/client-registration/v0.09/register
<!--
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~
-->
<html>
<head>
<title>Error 403</title>
</head>
<body>
<h1>Error 403 - Forbidden</h1>
</body>
</html>
URL 中的版本应该是 v0.10
http://localhost:9763/client-registration/v0.10/register
我正在研究 WSO2 API 经理开发人员基础培训文档 (LabkitAPIM200DF.pdf)。可以从 https://github.com/wso2/WSO2-Training/releases/tag/APIM2.0.0DF、
下载我在这里尝试执行第 53 页中的 Publisher API。我按照所有步骤进行操作,但出现禁止错误。
1.在[APIM_HOME]/bin
文件夹中创建payload.json
文件,内容如下
并保存:
{
"callbackUrl": "www.google.lk",
"clientName": "rest_api_publisher",
"tokenScope": "Production",
"owner": "admin",
"grantType": "password refresh_token",
"saasApp": true
}
2. 打开命令行界面。
3. 使用命令导航到 {APIM_HOME/bin] 文件夹。
4.给客户端注册的cURL命令。 (确保 API Manager Server 在执行此操作之前是 运行)。
curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H
"Content-Type: application/json" -d
@payload.json http://localhost:9763/client-registration/v0.09/register
<!--
~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~
-->
<html>
<head>
<title>Error 403</title>
</head>
<body>
<h1>Error 403 - Forbidden</h1>
</body>
</html>
URL 中的版本应该是 v0.10
http://localhost:9763/client-registration/v0.10/register