{
  "$type": "site.standard.document",
  "canonicalUrl": "https://rickymoorhouse.uk/blog/2015/automatically-publish-your-api-when-you-push-to-github",
  "path": "/blog/2015/automatically-publish-your-api-when-you-push-to-github",
  "publishedAt": "2015-12-12T08:40:57.000Z",
  "site": "at://did:plc:r53zv4vpzeihop3aliwyejlu/site.standard.publication/3mos5q3a7jf2w",
  "tags": [
    "apiconnect"
  ],
  "textContent": "Updated 11th October 2016 for API Connect\n\nIn less than half an hour I could update my project to automatically publish my API in IBM API Connect - Here's the steps...\n\nSign up for  API Connect through Bluemix by creating an API Connect service instance - if you don't already have a Bluemix account you can sign up for a free trial account.\n\nInstall and configure the new toolkit CLI - replacing eu with au or us if you chose a different bluemix region:\n\nCreate a product definition for your API:\n\n​    \n\nAdjust the product definition as needed in your favourite editor\n\nAdd the x-ibm-configuration extensions to your swagger document to configure what happens when someone calls the API - in my case invoke the backend API\n\n​    \n\nNow switch over to your CodeShip account, load your project and go to the Deployment section of your project.\n\nAdd a custom script option and confiigure the following script (adding your details as needed):\n\n​    \n\nCommit and push to your repository and your updated API will be pushed to API Management! - Here is my example API\n\nIf you don't already have a CodeShip account you can sign up to CodeShip with your github account and create link in your github repository. You can then set up the tests and deployment steps in the project settings.",
  "title": "Automatically publish your API when you push to github"
}