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

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

问题描述

我正在编写 WSO2 API Manager Developer Fundamentals 培训文档 (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.我遵循了所有步骤,但出现了 Forbidden 错误.

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 Server在执行此操作之前正在运行).

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天全站免登陆