Hi Heshan, Very recently we released WSO2 API Manager 3.0.0-m1 [1] which is based on Carbon 5(C5) and you can try out the product. If you encounter any issues or if you like to contribute to the project, please do send us a PR. With the new approach, our publisher and store apps are based on the REST API and you can use the REST API for the CLI as well.
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 [2] 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] - https://github.com/wso2/product-apim/releases/tag/v3.0.0-m1 [2] - http://editor.swagger.io Thank you! On Mon, Mar 6, 2017 at 3:43 PM, Heshan Jayasinghe <[email protected]> wrote: > Hi pubudu, > > I go though all the resources you given in previous mail and I started to > write my proposal.Now 40% of my proposal is completed.I continue my > proposal writing with requirement gathering.In the project description it > says i should complete following tasks > 1. Exporting a given API from one environment and Importing to another > 2. API Creation / Publishing > 3. API Subscription > 4. Key Generation > According to my knowledge all these things currently working with in the > web app.I think all these Web UIs calling to your internal APIs to do these > things.When I am creating a CLI tool can i use same APIs to do these task? > Can you please share all the internal API documentations you use to in the > Web app?Hope it will be give big help to this project. > > I started to do Go tutorials.I am practising Go sample codes in my git hub > repo [1] (in develop branch). I setup Go in my laptop , did Go basic > programming.I created some sample CLI tools in this [2] file location.I > am still practising more CLI tools and GO API calling and other advance > technologies in Go.hope I can complete my proposal and all the technical > and no technical knowledge gathering with in next two weeks.If you can > give me some advices in this stage I am really appreciate it. > > [1] - https://github.com/heshanjse/Go_-tutorial/tree/develop > [2] - https://github.com/heshanjse/Go_-tutorial/tree/ > develop/Go_-tutorial/Ex_Files_UaR_Go/ExerciseFiles/cli_tool > > Thank you, > regards, > Heshan Jayasinghe > > -- *Pubudu Gunatilaka* Committer and PMC Member - Apache Stratos Software Engineer WSO2, Inc.: http://wso2.com mobile : +94774078049 <%2B94772207163>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
