Push drafts to the server by using the toolkit
-
- Copy the lab files C
limbingWeather.yaml
andClimbingWeather-API.yaml
to a local directory. - Log in to the Bluemix server by using your credentials and the following command:
apic login --username [email protected] --password bluemix2 --server us.apiconnect.ibmcloud.com
Be sure to use the second user identity.
- Copy the lab files C
3.Push the product and API definitions to the remote server:
apic drafts:push ClimbingWeather.yaml –server us.apiconnect.ibmcloud.com –organization <orgname>
Any other user in the organization can now see and use these drafts by using the following commands:
apic drafts:list –server us.apiconnect.ibmcloud.com –organization <orgname>
apic drafts:pull ClimbingWeather.yaml –server us.apiconnect.ibmcloud.com –organization <orgname>