{"id":62751,"date":"2016-12-23T19:00:36","date_gmt":"2016-12-23T17:00:36","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=62751"},"modified":"2016-12-23T14:08:33","modified_gmt":"2016-12-23T12:08:33","slug":"deploying-restful-service-cloudfoundry","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html","title":{"rendered":"Deploying RESTful Service on Cloudfoundry"},"content":{"rendered":"<p>In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of this post, I already created <strong>employee-service<\/strong> which have a static backend and available for clone from <a href=\"https:\/\/github.com\/arpitaggarwal\/employee-service\" target=\"_blank\">GitHub<\/a>.<\/p>\n<p>Before deploying it on Cloudfoundry, let\u2019s have a brief about it.<\/p>\n<p><strong>Cloudfoundry<\/strong><\/p>\n<p>Cloud Foundry is an open source cloud platform as a service (PaaS) on which developers can build, deploy, run and scale applications on public and private cloud models. It is VMware originally created by VMware and now it is part of Pivotal Software.<\/p>\n<p>Now let\u2019s set up lightweight PCF on our local workstation using <a href=\"https:\/\/github.com\/pivotal-cf\/pcfdev\" target=\"_blank\">PCF Dev<\/a>, following below steps:<\/p>\n<p><strong>Step 1:<\/strong> <a href=\"https:\/\/cli.run.pivotal.io\/stable?release=macosx64&amp;source=github\" target=\"_blank\">Download <\/a>and install <strong>cf-cli-installer_6.22.2_osx.pkg<\/strong> \u00a0in a directory, for me it\u2019s <strong>\/Users\/ArpitAggarwal\/cloudfoundry<\/strong><\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/cloudfoundry\/ \r\n$ sudo installer -pkg .\/cf-cli-installer_6.22.2_osx.pkg -target \/<\/pre>\n<p><strong>Step 2:<\/strong> Test if Cloudfoundry CLI installed successfully:<\/p>\n<pre class=\"brush:java\">$ cf help<\/pre>\n<p><strong>Step 3:<\/strong> Next we will download and install <a href=\"https:\/\/network.pivotal.io\/products\/pcfdev\" target=\"_blank\">PCF Dev<\/a>\u00a0in the same directory we created earlier, as follows:<\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/cloudfoundry\/\r\n$ unzip pcfdev-v0.22.0+PCF1.8.2-osx.zip\r\n$ .\/pcfdev-v0.22.0+PCF1.8.2-osx<\/pre>\n<p><strong>Start 4:<\/strong> Start PCF Dev:<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/cloudfoundry\/\r\n$ cf dev start<\/pre>\n<p>Above command starts a single virtual machine on our workstation running PCF.<\/p>\n<p><strong>Step 5:<\/strong> Clone <strong>employee-service<\/strong> from GitHub in a directory, for me it\u2019s <strong>\/Users\/ArpitAggarwal\/<\/strong><\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/\r\n$ git clone https:\/\/github.com\/arpitaggarwal\/empoyee-service.git<\/pre>\n<p><strong>Step 6:<\/strong> Update the <strong>employee-service<\/strong> with <strong>manifest.yml:<\/strong><\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/employee-service\r\n$ touch manifest.yml<\/pre>\n<p><strong>manifest.yml<\/strong> created above is used by PCF for deployment to local workstation or on public cloud.<\/p>\n<p><strong>Step 7:<\/strong> Copy the below content in <strong>manifest.yml<\/strong>:<\/p>\n<pre class=\"brush:java\">---\r\napplications:\r\n- name: empoyee-service\r\n  memory: 1G\r\n  random-route: true\r\n  path: build\/libs\/empoyee-service-0.0.1.war\r\n  buildpack: https:\/\/github.com\/arpitaggarwal\/java-buildpack.git<\/pre>\n<p><strong>name<\/strong> attribute specified above is the name of an application.<br \/>\n<strong>path<\/strong> attribute is the directory location of an application.<br \/>\n<strong>buildpack<\/strong> attribute points to the java-buildpack, which is used by PCF for running JVM-based applications.<\/p>\n<p>More about <strong>manifest.yml<\/strong> you can explore <a href=\"https:\/\/docs.cloudfoundry.org\/devguide\/deploy-apps\/manifest.html\" target=\"_blank\">here<\/a>.<\/p>\n<p><strong>Step 8:<\/strong> Next, we will build the application and push it to Cloudfoundry local workstation after login, as follows:<\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/empoyee-service\r\n$ empoyee-service git:(master) .\/gradlew clean build\r\n$ empoyee-service git:(master) \u2717 cf login -a api.local.pcfdev.io --skip-ssl-validation\r\nAPI endpoint: api.local.pcfdev.io\r\n\r\nEmail&gt; user\r\nPassword&gt; pass\r\n\r\n$ cf push<\/pre>\n<p><strong>cf push<\/strong> command specified above push an app or syncs changes to an existing app to the URL <strong><a href=\"http:\/\/empoyee-service.local.pcfdev.io\" rel=\"nofollow\">http:\/\/empoyee-service.local.pcfdev.io<\/a><\/strong><\/p>\n<p><strong>Is application successfully deployed on Cloudfoundry?<\/strong><\/p>\n<p>Let\u2019s verify it viewing the recent deployment logs where we can look server start up status, as follows:<\/p>\n<pre class=\"brush:java\">$ cd \/Users\/ArpitAggarwal\/empoyee-service\r\n$ cf logs empoyee-service --recent<\/pre>\n<p>We can also verify application deployment executing GET and POST request against it, as follows:<\/p>\n<p><strong>GET Request to get all employees:<\/strong><\/p>\n<pre class=\"brush:java\">curl -i -H \"Accept: application\/json\" -H \"Content-Type: application\/json\" http:\/\/empoyee-service.local.pcfdev.io\/empoyee\/get<\/pre>\n<p><strong>POST Request to create an employee:<\/strong><\/p>\n<pre class=\"brush:java\">curl -H \"Content-Type: application\/json\" -X POST -d '{\"name\": \"Arpit Aggarwal\",\"email\":\"aggarwalarpit.89@gmail.com\"}' http:\/\/empoyee-service.local.pcfdev.io\/employee\/create<\/pre>\n<p>The complete source code is hosted on <a href=\"https:\/\/github.com\/arpitaggarwal\/employee-service\" target=\"_blank\">github<\/a>.<\/p>\n<h3><\/h3>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"https:\/\/aggarwalarpit.wordpress.com\/2016\/12\/22\/deploying-restful-service-on-cloudfoundry\/\">Deploying RESTful Service on Cloudfoundry<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Arpit Aggarwal at the <a href=\"https:\/\/aggarwalarpit.wordpress.com\/\">Arpit Aggarwal<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of this post, I already created employee-service which have a static backend and available for clone from GitHub. Before deploying it on Cloudfoundry, let\u2019s have a brief about it. &hellip;<\/p>\n","protected":false},"author":987,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[678,54],"class_list":["post-62751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-cloudfoundry","tag-restful-web-services"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deploying RESTful Service on Cloudfoundry - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying RESTful Service on Cloudfoundry - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/arpit.aggarwal.1989\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-23T17:00:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Arpit Aggarwal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@aggarwalarpit89\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arpit Aggarwal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html\"},\"author\":{\"name\":\"Arpit Aggarwal\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3927a00b4d96161bd6325e311a40e98e\"},\"headline\":\"Deploying RESTful Service on Cloudfoundry\",\"datePublished\":\"2016-12-23T17:00:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html\"},\"wordCount\":386,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"CloudFoundry\",\"RESTful Web Services\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html\",\"name\":\"Deploying RESTful Service on Cloudfoundry - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2016-12-23T17:00:36+00:00\",\"description\":\"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/12\\\/deploying-restful-service-cloudfoundry.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Deploying RESTful Service on Cloudfoundry\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3927a00b4d96161bd6325e311a40e98e\",\"name\":\"Arpit Aggarwal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g\",\"caption\":\"Arpit Aggarwal\"},\"description\":\"Arpit is a Consultant at Xebia India. He has been designing and building J2EE applications since more than 6 years. He is fond of Object Oriented and lover of Functional programming. You can read more of his writings at aggarwalarpit.wordpress.com\",\"sameAs\":[\"https:\\\/\\\/aggarwalarpit.wordpress.com\\\/\",\"https:\\\/\\\/www.facebook.com\\\/arpit.aggarwal.1989\",\"https:\\\/\\\/in.linkedin.com\\\/in\\\/arpitaggarwalxebia\",\"https:\\\/\\\/x.com\\\/aggarwalarpit89\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/arpit-aggarwal\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploying RESTful Service on Cloudfoundry - Java Code Geeks","description":"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html","og_locale":"en_US","og_type":"article","og_title":"Deploying RESTful Service on Cloudfoundry - Java Code Geeks","og_description":"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of","og_url":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_author":"https:\/\/www.facebook.com\/arpit.aggarwal.1989","article_published_time":"2016-12-23T17:00:36+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Arpit Aggarwal","twitter_card":"summary_large_image","twitter_creator":"@aggarwalarpit89","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Arpit Aggarwal","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html"},"author":{"name":"Arpit Aggarwal","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/3927a00b4d96161bd6325e311a40e98e"},"headline":"Deploying RESTful Service on Cloudfoundry","datePublished":"2016-12-23T17:00:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html"},"wordCount":386,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["CloudFoundry","RESTful Web Services"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html","url":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html","name":"Deploying RESTful Service on Cloudfoundry - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2016-12-23T17:00:36+00:00","description":"In this post, we will deploy RESTful service on Cloudfoundry using Pivotal Cloud Foundry (PCF) Dev. As creating a restful web service is not a part of","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2016\/12\/deploying-restful-service-cloudfoundry.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Deploying RESTful Service on Cloudfoundry"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/3927a00b4d96161bd6325e311a40e98e","name":"Arpit Aggarwal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0dc71e538e67766feb7c436ea43f02757eeb1f9446613ae680752be7239a3f6?s=96&d=mm&r=g","caption":"Arpit Aggarwal"},"description":"Arpit is a Consultant at Xebia India. He has been designing and building J2EE applications since more than 6 years. He is fond of Object Oriented and lover of Functional programming. You can read more of his writings at aggarwalarpit.wordpress.com","sameAs":["https:\/\/aggarwalarpit.wordpress.com\/","https:\/\/www.facebook.com\/arpit.aggarwal.1989","https:\/\/in.linkedin.com\/in\/arpitaggarwalxebia","https:\/\/x.com\/aggarwalarpit89"],"url":"https:\/\/www.javacodegeeks.com\/author\/arpit-aggarwal"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/62751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/987"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=62751"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/62751\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=62751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=62751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=62751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}