Hi Isuranga,

Nice to see you are interested in the project. As explained in the project
description, you need to develop a CLI tool for API Manager capabilities.

First of all, you can try out WSO2 API Manager 2.1.0 and get familiar with
the product [1] and the concepts [2]. Additionally, you can try out API
export/import feature [3] and the API Manager 2.1.0 REST APIs [4] to tryout
the product.

Currently, WSO2 API Manager team is working on Carbon 5(C5) based API
Manager implementation (we have released API Manager 3.0.0-m1) and you can
find the relevant repos in [5] [6] [7]. When you are developing the CLI,
you should use the C5 REST APIs. API Manager team has already added most
important REST APIs and we are working on adding new REST APIs based on the
functionalities. Meantime, you can also get familiar with GO language and
learn the concepts.

For you to get the idea on available APIs, you can do the following.

1. Start the API Manager 3.0.0-m1 pack.
2. We have separate REST APIs and one for the publisher and one for the
store. You can use the following URLs to access the swagger.json of the
APIs.
- Publisher : http://localhost:9090/api/am/publisher/v1/apis/swagger.json
- Store : http://localhost:9090/api/am/store/v1/apis/swagger.json
3. You can use swagger editor [8] to view the relevant APIs.

How to access the REST API

1. Retrieve application consumer key and secret

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type:
application/json" -d
'{"redirect_uris":[null],"clientName":"Test","ext_param_owner":"ADMIN"}' "
http://localhost:9090/keyserver/register";

2. Retrieve application access token using key and secret

curl -X POST -H "Authorization: Bearer {base64 encoded key:secret}" -H
"Content-Type: application/x-www-form-urlencoded"  -d
'grant_type=password&username=Smith&password=Smith&validity_period=3600' "
http://localhost:9090/keyserver/token";

3. Use the token to access the REST API resources

curl -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer
{token}'  http://127.0.0.1:9090/api/am/publisher/v1/apis

[1] - http://wso2.com/products/api-manager/
[2] - https://docs.wso2.com/display/AM210/Key+Concepts
[3] -
https://docs.wso2.com/display/AM210/Migrating+the+APIs+to+a+Different+Environment
[4] - https://docs.wso2.com/display/AM210/WSO2+APIs
[5] - https://github.com/wso2/carbon-apimgt/tree/C5
[6] - https://github.com/wso2/product-apim/tree/C5
[7] - https://github.com/wso2/product-apim/releases/tag/v3.0.0-m1
[8] - http://editor.swagger.io

Hope this helps

Thanks,
Sajith

On Tue, Mar 21, 2017 at 11:58 PM, Isuranga Perera <[email protected]
> wrote:

> HI All,
>
> I am a third year undergraduate at University of Colombo School of
> Computing. I went through the proposals for GSOC 2017 and I am interesting
> about developing a CLI tool for WSO2 API Manager (in reference to this:
> *https://docs.wso2.com/display/GSoC/Project+Proposals+for+2017#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager
> <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2017#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager>*
> )
>
> Can you explain more about the scope of this project
>
> Regards,
>
> [image: photo]
> Isuranga Perera
> at University of Colombo School of Computing
> P  +382244492  <+382244492> M  +94712986952  <+94712986952> E  
> [email protected]
> <[email protected]> W  https://isurangaperera.wordpress.com/
> <https://isurangaperera.wordpress.com/>
>
> <http://www.facebook.com/don.isuranga.perera>
> <http://www.linkedin.com/in/isuranga-perera-aa16a810b>
> <http://github.com/IsurangaPerera>
> <http://stackoverflow.com/users/6909517/isuranga-perera>
> Get a signature like this: Click here!
> <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0=&u=222300396804197>
>



-- 
Sajith Kariyawasam
*Associate Tech Lead*
*WSO2 Inc.; http://wso2.com <http://wso2.com/>*
*Committer and PMC member, Apache Stratos *
*AMIE (SL)*
*Mobile: 0772269575*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to