|  |  | 
|  | <!DOCTYPE HTML> | 
|  | <html lang="" > | 
|  | <head> | 
|  | <meta charset="UTF-8"> | 
|  | <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | 
|  | <title>Client generation · Eclipse Kapua™ Developer Guide</title> | 
|  | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | 
|  | <meta name="description" content=""> | 
|  | <meta name="generator" content="GitBook 3.2.2"> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <link rel="stylesheet" href="gitbook/style.css"> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <link rel="stylesheet" href="gitbook/gitbook-plugin-hints/plugin-hints.css"> | 
|  |  | 
|  |  | 
|  |  | 
|  | <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css"> | 
|  |  | 
|  |  | 
|  |  | 
|  | <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css"> | 
|  |  | 
|  |  | 
|  |  | 
|  | <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css"> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <meta name="HandheldFriendly" content="true"/> | 
|  | <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | 
|  | <meta name="apple-mobile-web-app-capable" content="yes"> | 
|  | <meta name="apple-mobile-web-app-status-bar-style" content="black"> | 
|  | <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png"> | 
|  | <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon"> | 
|  |  | 
|  |  | 
|  | <link rel="next" href="qa.html" /> | 
|  |  | 
|  |  | 
|  | <link rel="prev" href="database.html" /> | 
|  |  | 
|  |  | 
|  | </head> | 
|  | <body> | 
|  |  | 
|  | <div class="book"> | 
|  | <div class="book-summary"> | 
|  |  | 
|  |  | 
|  | <div id="book-search-input" role="search"> | 
|  | <input type="text" placeholder="Type to search" /> | 
|  | </div> | 
|  |  | 
|  |  | 
|  | <nav role="navigation"> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="summary"> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.1" data-path="./"> | 
|  |  | 
|  | <a href="./"> | 
|  |  | 
|  |  | 
|  | Introduction | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.2" data-path="building.html"> | 
|  |  | 
|  | <a href="building.html"> | 
|  |  | 
|  |  | 
|  | Building | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="articles"> | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.2.1" data-path="building.html"> | 
|  |  | 
|  | <a href="building.html#kapua"> | 
|  |  | 
|  |  | 
|  | Kapua | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.2.2" data-path="building.html"> | 
|  |  | 
|  | <a href="building.html#documentation"> | 
|  |  | 
|  |  | 
|  | Documentation | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  | </ul> | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.3" data-path="running.html"> | 
|  |  | 
|  | <a href="running.html"> | 
|  |  | 
|  |  | 
|  | Running | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="articles"> | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.3.1" data-path="running.html"> | 
|  |  | 
|  | <a href="running.html#docker-containers"> | 
|  |  | 
|  |  | 
|  | Docker | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.3.2" data-path="running.html"> | 
|  |  | 
|  | <a href="running.html#openshift"> | 
|  |  | 
|  |  | 
|  | OpenShift | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.3.3" data-path="running.html"> | 
|  |  | 
|  | <a href="running.html#vagrant"> | 
|  |  | 
|  |  | 
|  | Vagrant | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  | </ul> | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.4" data-path="ide.html"> | 
|  |  | 
|  | <a href="ide.html"> | 
|  |  | 
|  |  | 
|  | Setting up an IDE | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="articles"> | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.4.1" data-path="ide.html"> | 
|  |  | 
|  | <a href="ide.html#eclipse"> | 
|  |  | 
|  |  | 
|  | Eclipse IDE | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  | </ul> | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.5" > | 
|  |  | 
|  | <span> | 
|  |  | 
|  |  | 
|  | Configuration | 
|  |  | 
|  | </span> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="articles"> | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.5.1" > | 
|  |  | 
|  | <span> | 
|  |  | 
|  |  | 
|  | Web Console | 
|  |  | 
|  | </span> | 
|  |  | 
|  |  | 
|  |  | 
|  | <ul class="articles"> | 
|  |  | 
|  |  | 
|  | <li class="chapter " data-level="1.5.1.1" data-path="sso.html"> | 
|  |  | 
|  | <a href="sso.html"> | 
|  |  | 
|  |  | 
|  | Single sign-on | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  | </ul> | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  | </ul> | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.6" data-path="database.html"> | 
|  |  | 
|  | <a href="database.html"> | 
|  |  | 
|  |  | 
|  | Working with database | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter active" data-level="1.7" data-path="client.html"> | 
|  |  | 
|  | <a href="client.html"> | 
|  |  | 
|  |  | 
|  | Client generation | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  | <li class="chapter " data-level="1.8" data-path="qa.html"> | 
|  |  | 
|  | <a href="qa.html"> | 
|  |  | 
|  |  | 
|  | QA process | 
|  |  | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </li> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <li class="divider"></li> | 
|  |  | 
|  | <li> | 
|  | <a href="https://www.gitbook.com" target="blank" class="gitbook-link"> | 
|  | Published with GitBook | 
|  | </a> | 
|  | </li> | 
|  | </ul> | 
|  |  | 
|  |  | 
|  | </nav> | 
|  |  | 
|  |  | 
|  | </div> | 
|  |  | 
|  | <div class="book-body"> | 
|  |  | 
|  | <div class="body-inner"> | 
|  |  | 
|  |  | 
|  |  | 
|  | <div class="book-header" role="navigation"> | 
|  |  | 
|  |  | 
|  | <!-- Title --> | 
|  | <h1> | 
|  | <i class="fa fa-circle-o-notch fa-spin"></i> | 
|  | <a href="." >Client generation</a> | 
|  | </h1> | 
|  | </div> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | <div class="page-wrapper" tabindex="-1" role="main"> | 
|  | <div class="page-inner"> | 
|  |  | 
|  | <div id="book-search-results"> | 
|  | <div class="search-noresults"> | 
|  |  | 
|  | <section class="normal markdown-section"> | 
|  |  | 
|  | <h1 id="kapua-client-generation">Kapua client generation</h1> | 
|  | <p>In order to generate Kapua Java client from Swagger definition you need to start Kapua platform in the first place - see <a href="running.html">running Kapua</a>. | 
|  | When Kapua is up and running already, execute the following commands:</p> | 
|  | <pre><code>cd kapua/client | 
|  | ./generate-client-java.sh | 
|  | </code></pre><p>The output of the Swagger generator is available in <code>kapua/client/kapua-java</code> directory. Remember to check in the code you generated into version control.</p> | 
|  |  | 
|  |  | 
|  | </section> | 
|  |  | 
|  | </div> | 
|  | <div class="search-results"> | 
|  | <div class="has-results"> | 
|  |  | 
|  | <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> | 
|  | <ul class="search-results-list"></ul> | 
|  |  | 
|  | </div> | 
|  | <div class="no-results"> | 
|  |  | 
|  | <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  | </div> | 
|  |  | 
|  | </div> | 
|  | </div> | 
|  |  | 
|  | </div> | 
|  |  | 
|  |  | 
|  |  | 
|  | <a href="database.html" class="navigation navigation-prev " aria-label="Previous page: Working with database"> | 
|  | <i class="fa fa-angle-left"></i> | 
|  | </a> | 
|  |  | 
|  |  | 
|  | <a href="qa.html" class="navigation navigation-next " aria-label="Next page: QA process"> | 
|  | <i class="fa fa-angle-right"></i> | 
|  | </a> | 
|  |  | 
|  |  | 
|  |  | 
|  | </div> | 
|  |  | 
|  | <script> | 
|  | var gitbook = gitbook || []; | 
|  | gitbook.push(function() { | 
|  | gitbook.page.hasChanged({"page":{"title":"Client generation","level":"1.7","depth":1,"next":{"title":"QA process","level":"1.8","depth":1,"path":"qa.md","ref":"qa.md","articles":[]},"previous":{"title":"Working with database","level":"1.6","depth":1,"path":"database.md","ref":"database.md","articles":[]},"dir":"ltr"},"config":{"plugins":["hints"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"hints":{"danger":"fa fa-exclamation-circle","info":"fa fa-info-circle","tip":"fa fa-mortar-board","working":"fa fa-wrench"},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"github":"eclipse/kapua","theme":"default","githubHost":"https://github.com/","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Eclipse Kapua™ Developer Guide","links":{"home":"http://eclipse.org/kapua"},"gitbook":"3.x.x","description":"Eclipse Kapua™ Developer Guide"},"file":{"path":"client.md","mtime":"2017-07-19T09:02:44.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-07-19T09:20:21.287Z"},"basePath":".","book":{"language":""}}); | 
|  | }); | 
|  | </script> | 
|  | </div> | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook.js"></script> | 
|  | <script src="gitbook/theme.js"></script> | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-search/search-engine.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-search/search.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> | 
|  |  | 
|  |  | 
|  |  | 
|  | </body> | 
|  | </html> | 
|  |  |