In APIConnect you can create APIs using APIConnect toolkit. While drafts can be created offline, if you want to have this draft show up in APIConnect API Manager UI, you would need following details
1. Host address of your APIManager
2. Organization name you would log in to
2. Username / Password with at least API Developer role to log in to the Organization.
To install apiconnect toolkit all you need is a node and npm installed in your system.
For Requirements to install apiconnect toolkit refer to link https://www.npmjs.com/package/apiconnect
$ npm install -g apiconnect
To create an api using toolkit run the following command
apic create –type api –title “Routes” –name routes –version 1.0.0 –filename routes100.yaml
Once you have the api created, to push it to the APIManager API Draft view you would need to first log in to APIConnect.
To login to the APIConnnect, example server namer is acme.com. And your username is firstname.lastname@example.org with password: password.
apic login -u email@example.com -p passwordÂ -s acme.com
To push the api draft to the APIManager
apic drafts:push routes100.yaml â€”organization climbon â€”server acme.com
We can now view the draft in APIManagr draft APIs view.
We can create products using apiconnect toolkit. A Product contains of one or more APIs and one or more Plans. To create a product and adding api using toolkit use following command
apic create â€”type product â€”title â€śClimb Onâ€ť â€”name climbon â€”apis â€śroutes100.yamlâ€ť â€”version 1.0.1 â€”filename climbon_product.yaml
You can push this draft product to APIManager using the following command
apic drafts:push climbon_product.yaml â€”-organization climbon â€”serverÂ acme.com
Once the product is pushed to APIManager you can view them in APIManager draft products view.