WSO2 AM培训文档问题 [英] WSO2 AM Training Doc Issue

查看:152
本文介绍了WSO2 AM培训文档问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究WSO2 API Manager开发人员基础知识培训文档(LabkitAPIM200DF.pdf).可以从 https://github.com/wso2/下载WSO2-Training/releases/tag/APIM2.0.0DF

I am working on WSO2 API Manager Developer Fundamentals training doc(LabkitAPIM200DF.pdf). It can be download from https://github.com/wso2/WSO2-Training/releases/tag/APIM2.0.0DF,

在这里,我尝试执行第53页中的Publisher API.我遵循了所有步骤,但是遇到了禁止错误.

Here I am trying to do Publisher API in page 53. I followed all steps but I am getting Forbidden error.

1..使用以下文本在[APIM_HOME]/bin文件夹中创建payload.json文件. 并保存:

1. Create the payload.json file in the [APIM_HOME]/bin folder with the following text and save:

{
 "callbackUrl": "www.google.lk",
 "clientName": "rest_api_publisher",
 "tokenScope": "Production",
 "owner": "admin",
 "grantType": "password refresh_token",
 "saasApp": true
}

2..打开命令行界面.

3..使用命令导航到{APIM_HOME/bin]文件夹.

3. Navigate to the {APIM_HOME/bin] folder using the command.

4..输入 cURL 命令进行客户端注册. (确保API Manager服务器 正在执行此操作).

4. Give the cURL command for client registration. (Make sure the API Manager Server is running before doing this).

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

Version in the URL should be v0.10

http://localhost:9763/client-registration/v0.10/register

这篇关于WSO2 AM培训文档问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆