blob: d1889c227ed83d5b669968eef492f5851a839005 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>SMILA/Documentation/Using The ReST API - Eclipsepedia</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="generator" content="MediaWiki 1.23.2" />
<link rel="shortcut icon" href="http://wiki.eclipse.org/eclipse.org-common/themes/solstice/public/images/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="http://wiki.eclipse.org/opensearch_desc.php" title="Eclipsepedia (en)" />
<link rel="EditURI" type="application/rsd+xml" href="http://wiki.eclipse.org/api.php?action=rsd" />
<link rel="alternate" type="application/atom+xml" title="Eclipsepedia Atom feed" href="http://wiki.eclipse.org/index.php?title=Special:RecentChanges&amp;feed=atom" />
<link rel="stylesheet" href="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.ui.button&amp;only=styles&amp;skin=solstice&amp;*" />
<link rel="stylesheet" href="http://wiki.eclipse.org/skins/solstice/public/stylesheets/styles.min.css?303" media="screen, print" /><meta name="ResourceLoaderDynamicStyles" content="" />
<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: my_wiki:resourceloader:filter:minify-css:7:14ece53a42aa314864e5fd8c57f0d98f */</style>
<script src="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=solstice&amp;*"></script>
<script>if(window.mw){
mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"SMILA/Documentation/Using_The_ReST_API","wgTitle":"SMILA/Documentation/Using The ReST API","wgCurRevisionId":366688,"wgRevisionId":366688,"wgArticleId":35475,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["SMILA"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"SMILA/Documentation/Using_The_ReST_API","wgIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgWikiEditorEnabledModules":{"toolbar":false,"dialogs":false,"hidesig":true,"preview":false,"previewDialog":false,"publish":false},"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}"});
}</script><script>if(window.mw){
mw.loader.implement("user.options",function($,jQuery){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"editfont":"default","editondblclick":0,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":1,"extendwatchlist":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"math":1,"minordefault":0,"newpageshidepatrolled":0,"nickname":"","norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"rcdays":7,"rclimit":50,"rows":25,"showhiddencats":0,"shownumberswatching":1,"showtoolbar":1,"skin":"solstice","stubthreshold":0,"thumbsize":2,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":1,"watchdeletion":0,"watchlistdays":3,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,
"useeditwarning":1,"prefershttps":1,"language":"en","variant-gan":"gan","variant-iu":"iu","variant-kk":"kk","variant-ku":"ku","variant-shi":"shi","variant-sr":"sr","variant-tg":"tg","variant-uz":"uz","variant-zh":"zh","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"variant":"en"});},{},{});mw.loader.implement("user.tokens",function($,jQuery){mw.user.tokens.set({"editToken":"+\\","patrolToken":false,"watchToken":false});},{},{});
/* cache key: my_wiki:resourceloader:filter:minify-js:7:70d74423d3fc1e1c18fa9a1ff645a84a */
}</script>
<script>if(window.mw){
mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax"]);
}</script>
<style type="text/css">/*<![CDATA[*/
.source-javascript {line-height: normal;}
.source-javascript li, .source-javascript pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for javascript
* CSS class: source-javascript, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.javascript.source-javascript .de1, .javascript.source-javascript .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.javascript.source-javascript {font-family:monospace;}
.javascript.source-javascript .imp {font-weight: bold; color: red;}
.javascript.source-javascript li, .javascript.source-javascript .li1 {font-weight: normal; vertical-align:top;}
.javascript.source-javascript .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.javascript.source-javascript .li2 {font-weight: bold; vertical-align:top;}
.javascript.source-javascript .kw1 {color: #000066; font-weight: bold;}
.javascript.source-javascript .kw2 {color: #003366; font-weight: bold;}
.javascript.source-javascript .kw3 {color: #000066;}
.javascript.source-javascript .kw5 {color: #FF0000;}
.javascript.source-javascript .co1 {color: #006600; font-style: italic;}
.javascript.source-javascript .co2 {color: #009966; font-style: italic;}
.javascript.source-javascript .coMULTI {color: #006600; font-style: italic;}
.javascript.source-javascript .es0 {color: #000099; font-weight: bold;}
.javascript.source-javascript .br0 {color: #009900;}
.javascript.source-javascript .sy0 {color: #339933;}
.javascript.source-javascript .st0 {color: #3366CC;}
.javascript.source-javascript .nu0 {color: #CC0000;}
.javascript.source-javascript .me1 {color: #660066;}
.javascript.source-javascript .ln-xtra, .javascript.source-javascript li.ln-xtra, .javascript.source-javascript div.ln-xtra {background-color: #ffc;}
.javascript.source-javascript span.xtra { display:block; }
/*]]>*/
</style><style type="text/css">/*<![CDATA[*/
.source-text {line-height: normal;}
.source-text li, .source-text pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for text
* CSS class: source-text, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.text.source-text .de1, .text.source-text .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.text.source-text {font-family:monospace;}
.text.source-text .imp {font-weight: bold; color: red;}
.text.source-text li, .text.source-text .li1 {font-weight: normal; vertical-align:top;}
.text.source-text .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.text.source-text .li2 {font-weight: bold; vertical-align:top;}
.text.source-text .ln-xtra, .text.source-text li.ln-xtra, .text.source-text div.ln-xtra {background-color: #ffc;}
.text.source-text span.xtra { display:block; }
/*]]>*/
</style><style type="text/css">/*<![CDATA[*/
.source-java {line-height: normal;}
.source-java li, .source-java pre {
line-height: normal; border: 0px none white;
}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for java
* CSS class: source-java, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
* --------------------------------------
*/
.java.source-java .de1, .java.source-java .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.java.source-java {font-family:monospace;}
.java.source-java .imp {font-weight: bold; color: red;}
.java.source-java li, .java.source-java .li1 {font-weight: normal; vertical-align:top;}
.java.source-java .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.java.source-java .li2 {font-weight: bold; vertical-align:top;}
.java.source-java .kw1 {color: #7F0055; font-weight: bold;}
.java.source-java .kw2 {color: #7F0055; font-weight: bold;}
.java.source-java .kw3 {color: #000000; font-weight: normal}
.java.source-java .kw4 {color: #7F0055; font-weight: bold;}
.java.source-java .co1 {color: #3F7F5F; font-style: italic;}
.java.source-java .co2 {color: #3F7F5F;}
.java.source-java .co3 {color: #3F7F5F; font-style: italic; font-weight: bold;}
.java.source-java .coMULTI {color: #3F5FBF; font-style: italic;}
.java.source-java .es0 {color: #000000;}
.java.source-java .br0 {color: #000000;}
.java.source-java .sy0 {color: #000000;}
.java.source-java .st0 {color: #2A00ff;}
.java.source-java .nu0 {color: #000000;}
.java.source-java .me1 {color: #000000;}
.java.source-java .me2 {color: #000000;}
.java.source-java .ln-xtra, .java.source-java li.ln-xtra, .java.source-java div.ln-xtra {background-color: #ffc;}
.java.source-java span.xtra { display:block; }
/*]]>*/
</style><meta name="viewport" content="width=device-width, initial-scale=1.0"></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-SMILA_Documentation_Using_The_ReST_API skin-solstice action-view" id="solstice">
<a class="sr-only" href="Using_The_ReST_API.html#content">Skip to main content</a>
<div class="thin-header">
<header role="banner" class="hidden-print noprint">
<div class="container-fluid">
<div id="row-logo-search">
<div id="header-left">
<div class="row">
<div class="hidden-xs col-sm-6 logo-container">
<a href="https://www.eclipse.org/" ><img class="logo-eclipse-default" src="http://wiki.eclipse.org/skins/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipsepedia"></a>
</div>
<div class="navbar col-sm-18 yamm" id="main-menu">
<div class="navbar-collapse collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a target="_self" href="https://eclipse.org/downloads/">Download</a></li>
<li><a target="_self" href="https://eclipse.org/users/">Getting Started </a></li>
<li><a target="_self" href="https://eclipse.org/membership/">Members</a></li>
<li><a target="_self" href="https://eclipse.org/projects/">Projects</a></li>
<li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="Using_The_ReST_API.html#">Community <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="http://marketplace.eclipse.org">Marketplace</a></li><li><a href="http://events.eclipse.org">Events</a></li><li><a href="http://www.planeteclipse.org/">Planet Eclipse</a></li><li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li><li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li></ul></li><li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="Using_The_ReST_API.html#">Participate <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li><li><a href="https://eclipse.org/forums/">Forums</a></li><li><a href="https://eclipse.org/mail/">Mailing Lists</a></li><li><a href="https://wiki.eclipse.org/">Wiki</a></li><li><a href="https://wiki.eclipse.org/IRC">IRC</a></li><li><a href="https://eclipse.org/contribute/">How to Contribute</a></li></ul></li><li class="dropdown visible-xs"><a class="dropdown-toggle" data-toggle="dropdown" href="Using_The_ReST_API.html#">Working Groups <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="http://wiki.eclipse.org/Auto_IWG">Automotive</a></li><li><a href="http://iot.eclipse.org">Internet of Things</a></li><li><a href="http://locationtech.org">LocationTech</a></li><li><a href="http://lts.eclipse.org">Long-Term Support</a></li><li><a href="http://polarsys.org">PolarSys</a></li><li><a href="http://science.eclipse.org">Science</a></li><li><a href="http://openmdm.org">OpenMDM</a></li></ul></li><!-- More -->
<li class="dropdown hidden-xs"><a class="dropdown-toggle" data-toggle="dropdown">More<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<!-- Content container to add padding -->
<div class="yamm-content">
<div class="row">
<ul class="col-sm-8 list-unstyled"><li><p><strong>Community</strong></p></li><li><a href="http://marketplace.eclipse.org">Marketplace</a></li><li><a href="http://events.eclipse.org">Events</a></li><li><a href="http://www.planeteclipse.org/">Planet Eclipse</a></li><li><a href="https://eclipse.org/community/eclipse_newsletter/">Newsletter</a></li><li><a href="https://www.youtube.com/user/EclipseFdn">Videos</a></li></ul><ul class="col-sm-8 list-unstyled"><li><p><strong>Participate</strong></p></li><li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li><li><a href="https://eclipse.org/forums/">Forums</a></li><li><a href="https://eclipse.org/mail/">Mailing Lists</a></li><li><a href="https://wiki.eclipse.org/">Wiki</a></li><li><a href="https://wiki.eclipse.org/IRC">IRC</a></li><li><a href="https://eclipse.org/contribute/">How to Contribute</a></li></ul><ul class="col-sm-8 list-unstyled"><li><p><strong>Working Groups</strong></p></li><li><a href="http://wiki.eclipse.org/Auto_IWG">Automotive</a></li><li><a href="http://iot.eclipse.org">Internet of Things</a></li><li><a href="http://locationtech.org">LocationTech</a></li><li><a href="http://lts.eclipse.org">Long-Term Support</a></li><li><a href="http://polarsys.org">PolarSys</a></li><li><a href="http://science.eclipse.org">Science</a></li><li><a href="http://openmdm.org">OpenMDM</a></li></ul> </div>
</div>
</li>
</ul>
</li>
</ul>
</div>
<div class="navbar-header">
<button data-target="#navbar-collapse-1" data-toggle="collapse" class="navbar-toggle" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="https://www.eclipse.org/" class="visible-xs navbar-brand"><img class="logo-eclipse-default" src="http://wiki.eclipse.org/skins/solstice/public/images/logo/eclipse-800x188.png" alt="Eclipsepedia" width="174"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<section class="defaut-breadcrumbs hidden-print noprint hidden-print clearfix" id="breadcrumb">
<div>
<ol class="breadcrumb">
<li><a href="https://www.eclipse.org/">Home</a></li>
<li><a href="http://wiki.eclipse.org/Main_Page">Eclipse Wiki</a></li>
<li class="active">SMILA/Documentation/Using The ReST API</li></ol>
</div>
</section>
</div>
<div class="toolbar-menu breadcrumbs-offset noprint hidden-print margin-bottom-0 clearfix">
<div class="col-md-24">
<ol class="breadcrumb" role="navigation">
<li id="pt-login">
<a href="http://wiki.eclipse.org/index.php?title=Special:UserLogin&amp;returnto=SMILA%2FDocumentation%2FUsing+The+ReST+API">
<i class="fa fa-sign-in fa-fw orange"></i> Log in </a>
</li>
</ul>
</div>
</div>
<main role="main" class="background-grey">
<div class="container-full padding-top-25">
<!-- content -->
<section id="content" class="mw-body container-full clearfix 0">
<div id="mw-js-message" style="display:none;"></div>
<!-- bodyContent -->
<div id="bodyContent">
<!-- jumpto -->
<div id="jump-to-nav" class="mw-jump">
Jump to: <a href="Using_The_ReST_API.html#mw-head">navigation</a>,
<a href="Using_The_ReST_API.html#p-search">search</a>
</div>
<!-- /jumpto -->
<!-- leftcol -->
<aside class="col-md-4 noprint hidden-print" id="leftcol">
<form class="input-group" role="form" id="form-eclipse-search" action="http://wiki.eclipse.org/index.php" id="searchform">
<input id="searchInput" class="search-query form-control" type="search" accesskey="f" title="Special:Search" placeholder="Search" name="search" value="">
<span class="input-group-btn">
<button value="search" id="mw-searchButton" type="submit" class="btn btn-default" title="Search the pages for this text" name="fulltext">
<i class="fa fa-search"></i>
</button>
</span>
</form>
<select class="form-control margin-top-10 margin-bottom-10 visible-xs visible-sm" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"><option class="fw-700 "><span class="fw-700">---Navigation---</span></option><option value="/Main_Page">Main Page</option><option value="/Eclipsepedia:Community_portal">Community portal</option><option value="/Eclipsepedia:Current_events">Current events</option><option value="/Special:RecentChanges">Recent changes</option><option value="/Special:Random">Random page</option><option value="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents">Help</option></select><ul class="ul-left-nav fa-ul hidden-print leftnav hidden-xs hidden-sm"><li class="separator"><span class="separator">Navigation</span></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Main_Page" id="n-mainpage" title="Visit the main page [z]" accesskey="z">Main Page</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Eclipsepedia:Community_portal" id="n-portal" title="About the project, what you can do, where to find things">Community portal</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Eclipsepedia:Current_events" id="n-currentevents" title="Find background information on current events">Current events</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:RecentChanges" id="n-recentchanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:Random" id="n-randompage" title="Load a random page [x]" accesskey="x">Random page</a></li> <li class=""><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents" id="n-help" title="The place to find out">Help</a></li></ul> <select class="form-control margin-top-10 margin-bottom-10 visible-xs visible-sm" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"><option class="fw-700 "><span class="fw-700">---Toolbox---</span></option><option value="/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;action=info">Page information</option><option value="/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;oldid=366688">Permanent link</option><option value="/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;printable=yes">Printable version</option><option value="/Special:SpecialPages">Special pages</option><option value="/Special:RecentChangesLinked/SMILA/Documentation/Using_The_ReST_API">Related changes</option><option value="/Special:WhatLinksHere/SMILA/Documentation/Using_The_ReST_API">What links here</option></select><ul class="ul-left-nav fa-ul hidden-print leftnav hidden-xs hidden-sm"><li class="separator"><span class="separator">Toolbox</span></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;action=info" id="t-info">Page information</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;oldid=366688" id="t-permalink" title="Permanent link to this revision of the page">Permanent link</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;printable=yes" id="t-print" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:SpecialPages" id="t-specialpages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:RecentChangesLinked/SMILA/Documentation/Using_The_ReST_API" id="t-recentchangeslinked" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li><li><i class="fa fa-angle-double-right orange fa-fw"></i> <a href="http://wiki.eclipse.org/Special:WhatLinksHere/SMILA/Documentation/Using_The_ReST_API" id="t-whatlinkshere" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li></ul> </aside>
<!-- /leftcol -->
<!-- mainContent -->
<div id="mainContent" class="col-md-20">
<ul class="nav nav-tabs noprint hidden-print" role="tablist">
<li id="ca-nstab-main" class="active"><a href="Using_The_ReST_API.html" title="View the content page [c]" accesskey="c" tabindex="-1">Page</a></li>
<li id="ca-talk" class="new"><a href="http://wiki.eclipse.org/index.php?title=Talk:SMILA/Documentation/Using_The_ReST_API&amp;action=edit&amp;redlink=1" title="Discussion about the content page [t]" accesskey="t" tabindex="-1">Discussion</a></li>
<li id="ca-viewsource"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e" tabindex="-1">View source</a></li>
<li id="ca-history" class="collapsible"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;action=history" title="Past revisions of this page [h]" accesskey="h" tabindex="-1">History</a></li>
</ul> <div class="tab-content background-white">
<div id="tab-pane-main-page-content" class="tab-pane active">
<h1 id="firstHeading" class="firstHeading page-header">
<span dir="auto">SMILA/Documentation/Using The ReST API</span>
</h1>
<div id="main-page-content">
<!-- subtitle -->
<div id="contentSub" class="alert alert-small alert-warning"><span class="subpages">&lt; <a href="../../SMILA.html" title="SMILA">SMILA</a>&lrm; | <a href="../Documentation.1.html" title="SMILA/Documentation">Documentation</a></span></div>
<!-- /subtitle -->
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p>Most functionality of SMILA is already accessible via an HTTP ReST API using JSON to represent data.
This means basically that you can control and monitor a running SMILA server using your web browser (at least with some small plugins).
Also, it is relatively simple to talk to SMILA programmatically or using scripts. On this page we will recommend some tools and
best practices to work with SMILA.
</p><p>Feel free to extend this page if you find interesting tools that you want to recommend to other SMILA users.
</p>
<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="Using_The_ReST_API.html#Basics"><span class="tocnumber">1</span> <span class="toctext">Basics</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="Using_The_ReST_API.html#Interactive_Tools"><span class="tocnumber">2</span> <span class="toctext">Interactive Tools</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="Using_The_ReST_API.html#Web_Browser_Add-Ons"><span class="tocnumber">2.1</span> <span class="toctext">Web Browser Add-Ons</span></a></li>
<li class="toclevel-2 tocsection-4"><a href="Using_The_ReST_API.html#Shell_scripting"><span class="tocnumber">2.2</span> <span class="toctext">Shell scripting</span></a>
<ul>
<li class="toclevel-3 tocsection-5"><a href="Using_The_ReST_API.html#Posting_attachments_from_shell_scripts"><span class="tocnumber">2.2.1</span> <span class="toctext">Posting attachments from shell scripts</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1 tocsection-6"><a href="Using_The_ReST_API.html#Programmatical_Access"><span class="tocnumber">3</span> <span class="toctext">Programmatical Access</span></a>
<ul>
<li class="toclevel-2 tocsection-7"><a href="Using_The_ReST_API.html#SMILA_RestClient"><span class="tocnumber">3.1</span> <span class="toctext">SMILA RestClient</span></a></li>
<li class="toclevel-2 tocsection-8"><a href="Using_The_ReST_API.html#Apache_HttpClient_4.x"><span class="tocnumber">3.2</span> <span class="toctext">Apache HttpClient 4.x</span></a></li>
<li class="toclevel-2 tocsection-9"><a href="Using_The_ReST_API.html#Apache_HttpClient_3.1"><span class="tocnumber">3.3</span> <span class="toctext">Apache HttpClient 3.1</span></a></li>
</ul>
</li>
</ul>
</div>
<h2><span class="mw-headline" id="Basics">Basics</span></h2>
<p>An HTTP ReST API consists of a set of URLs that can be invoked using standard HTTP requests. One URL refers to a "resource" in the system, which may be a service or some element managed by a service. Each resource may support several HTTP methods for different operations, but not each resource will support every method. In SMILA we use the following methods, usually with one of the described semantics:
</p>
<ul>
<li> <tt>GET</tt>: get the content, definition or description of the resource; get statistic data or state information about the resource
</li>
<li> <tt>POST</tt>: execute the main functionality of the resource (e.g. execute a pipeline); add or update a sub element of the resource
</li>
<li> <tt>PUT</tt>: set the content, definition, or description of the resource
</li>
<li> <tt>DELETE</tt>: clear the contents of the resource; remove an element from the resource.
</li>
</ul>
<p>Most resources should at least support the <tt>GET</tt> method which is the method used by the web browser when you enter the URL, and the result should contain links to resources associated with this resource. So you can explore the system state with your web browser.
</p><p><tt>GET</tt> and <tt>DELETE</tt> requests never have a request body, parameters must be passed by using <tt>...?param1=value1&amp;param2=value2</tt> in the URL. With <tt>POST</tt> and <tt>PUT</tt> requests the data is passed in the request body as a JSON object, i.e. a JSON string like this:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="javascript source-javascript"><pre class="de1"><span class="br0">&#123;</span>
<span class="st0">&quot;param1&quot;</span><span class="sy0">:</span> <span class="st0">&quot;value1&quot;</span><span class="sy0">,</span>
<span class="st0">&quot;param2&quot;</span><span class="sy0">:</span> <span class="st0">&quot;value2
}</span></pre></div></div>
<p>In SMILA, this corresponds to the <a href="Data_Model_and_Serialization_Formats.html#Concepts" title="SMILA/Documentation/Data Model and Serialization Formats">metadata part of a record</a>. In <tt>POST</tt> requests it is also possible to add binary attachments, see <a href="JettyHttpServer.html#Attachments" title="SMILA/Documentation/JettyHttpServer">Documentation of the SMILA HTTP server</a> for details. Finally, some resources accept or produce so-called "JSON bulks". This means that it is possible to send or get a bunch of records in a single request. The JSON of the record metadata must then be printed on a single line, and the records are separated by newlines. However, it is not possible to add attachments to such records.
</p><p>See <a href="../REST_API_Reference.html" title="SMILA/REST API Reference" class="mw-redirect">SMILA/REST_API_Reference</a> for a list of available resources and links to documentation.
</p>
<h2><span class="mw-headline" id="Interactive_Tools">Interactive Tools</span></h2>
<h3><span class="mw-headline" id="Web_Browser_Add-Ons">Web Browser Add-Ons</span></h3>
<p>For most web browsers there are free add-ons available that support pretty-printed viewing of JSON documents and the interactive invocation of ReST commands.
</p>
<ul>
<li> JSON viewer: By default browsers do not know how to handle JSON results and will suggest to download them to a file. There are add-ons that display the JSON right in the browser, nicely formatted and highlighted and make contained URLs clickable, which makes it easy to explore the system state
<ul>
<li> Firefox: <a rel="nofollow" class="external text" href="https://addons.mozilla.org/de/firefox/addon/jsonview/">JSONView</a>
</li>
<li> Chrome: <a rel="nofollow" class="external text" href="https://chrome.google.com/webstore/detail/chklaanhfefbnpoihckbnefhakgolnmc">JSONView</a>
</li>
<li> Opera: <a rel="nofollow" class="external text" href="https://addons.opera.com/addons/extensions/details/jsonviewer/">JSONViewer</a>
</li>
</ul>
</li>
<li> ReST Client: ReST Client allow to compose other requests than <tt>GET</tt> requests with the browser. They allow to enter the resource URL, select the request method, and add the request body content, and then you can execute the request and view the result. There are lots of these add-ons out there, we can recommend the following:
<ul>
<li> Firefox: <a rel="nofollow" class="external text" href="https://addons.mozilla.org/de/firefox/addon/restclient/">REST Client</a>
</li>
<li> Chrome:
<ul>
<li> <a rel="nofollow" class="external text" href="https://chrome.google.com/webstore/detail/baedhhmoaooldchehjhlpppaieoglhml">cREST Client</a>: Easy to use and keeps a nice history of the executed requests so that it is easy to repeat sequences of commands for test purposes.
</li>
<li> <a rel="nofollow" class="external text" href="https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo">Advanced REST client application</a>: A bit harder to use, but the only one we currently know of that lets you create "multipart" requests containing record attachments: In the following screenshot we have created a request to submit a record (first file field contains name of a JSON file) with an attachment (second file field) to the "indexUpdate" job: <br /> <a href="http://wiki.eclipse.org/File:SMILA-SendAttachmentWithAdvancedRestClient.png" class="image"><img alt="SMILA-SendAttachmentWithAdvancedRestClient.png" src="http://wiki.eclipse.org/images/thumb/a/a5/SMILA-SendAttachmentWithAdvancedRestClient.png/600px-SMILA-SendAttachmentWithAdvancedRestClient.png" width="600" height="481" srcset="/images/a/a5/SMILA-SendAttachmentWithAdvancedRestClient.png 1.5x, /images/a/a5/SMILA-SendAttachmentWithAdvancedRestClient.png 2x" /></a>
</li>
</ul>
</li>
<li> Opera: <a rel="nofollow" class="external text" href="https://addons.opera.com/de/addons/extensions/details/simple-rest-client/1.3/">Simple REST Client</a>: Very simple only.
</li>
</ul>
</li>
</ul>
<h3><span class="mw-headline" id="Shell_scripting">Shell scripting</span></h3>
<p>Basically, it is possible to work with the ReST API using generic HTTP tools like <a rel="nofollow" class="external text" href="http://curl.haxx.se/">cURL</a>. However, for improved usability you might want to check out <a rel="nofollow" class="external text" href="https://github.com/micha/resty">resty</a>. This is a simple wrapper (for bash and zsh) for <a rel="nofollow" class="external text" href="http://curl.haxx.se/">cURL</a> that allows you to write ReST requests like shell commands:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="text source-text"><pre class="de1"># initialize
&gt; resty http://localhost:8080
# get entry page
&gt; GET /smila
# define a job
&gt; POST /smila/jobmanager/jobs '{&quot;name&quot;:&quot;myJob&quot;,&quot;workflow&quot;:&quot;myWorkflow&quot;,&quot;parameters&quot;:{ ... }}'
# etc.</pre></div></div>
<p>See the <a rel="nofollow" class="external text" href="https://github.com/micha/resty">resty web site</a> for more information.
</p>
<h4><span class="mw-headline" id="Posting_attachments_from_shell_scripts">Posting attachments from shell scripts</span></h4>
<p>You can use <a rel="nofollow" class="external text" href="http://curl.haxx.se/">cURL</a> to send a record with some metadata and a binary file as an attachment: Use the <tt>-F</tt> option to send a multipart request to the specified URL. The part name "metadata" for the JSON part is arbitrary, the JSON part must be the first part in the request. The field name of the following attachment part (here "content") will be the name of the attachment in the created record. You can add multiple attachments with different names this way.
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="text source-text"><pre class="de1"># send a metadata record and a binary attachment to a etlImport job
&gt; curl -F &quot;metadata=@record.json&quot; -F &quot;content=@binary-file.pdf&quot; http://localhost:8080/smila/job/etlImport/record</pre></div></div>
<p>As <a rel="nofollow" class="external text" href="https://github.com/micha/resty">resty</a> is based on cURL and passes all options to the cURL call, the same <tt>-F</tt> options should work there, too.
</p>
<h2><span class="mw-headline" id="Programmatical_Access">Programmatical Access</span></h2>
<p>It's quite easy to use the SMILA API from external programs. In Java, basically everything you need is available in packages <tt>java.net</tt>. But it's easier using the SMILA data model classes and JSON utilities and a HTTP library like the Apache HttpClient. Below we provide some simple examples for doing requests with it.
</p><p>There are also free Java libraries available to make working with JSON ReST APIs easier, e.g. <a rel="nofollow" class="external text" href="http://beders.github.com/Resty/Resty/Overview.html">Resty</a> (yes, same name, but another tool&#160;;-). However, we do not have experience with them.
</p>
<h3><span class="mw-headline" id="SMILA_RestClient">SMILA RestClient</span></h3>
<p>Since SMILA 1.1.0, we also provide a small library that encapsulates the JSON conversion and HTTP communication code for you. It's based on the SMILA data model classes and the Apache HttpCient 4.2, so it basically wraps up the code shown below. See <a href="HowTo/How_to_access_the_REST_API_with_the_RestClient.html" title="SMILA/Documentation/HowTo/How to access the REST API with the RestClient">SMILA/Documentation/HowTo/How_to_access_the_REST_API_with_the_RestClient</a> for details.
</p>
<h3><span class="mw-headline" id="Apache_HttpClient_4.x">Apache HttpClient 4.x</span></h3>
<p>Using <a rel="nofollow" class="external text" href="http://hc.apache.org/httpcomponents-client-ga/index.html%7CApache">HttpClient 4.x</a> (version 4.1 is included in SMILA since 1.1.0) and <a rel="nofollow" class="external text" href="http://commons.apache.org/io/">Apache Commons IO</a>, invoking a pipeline could be done like this:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="java source-java"><pre class="de1"><span class="kw1">import</span> <span class="co2">org.apache.http.HttpResponse</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.http.HttpStatus</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.http.client.HttpClient</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.http.client.methods.HttpPost</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.http.entity.StringEntity</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.http.impl.client.DefaultHttpClient</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.commons.io.IOUtils</span><span class="sy0">;</span>
&#160;
HttpClient client <span class="sy0">=</span> <span class="kw1">new</span> DefaultHttpClient<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
IpcAnyReader jsonReader <span class="sy0">=</span> <span class="kw1">new</span> IpcAnyReader<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
IpcAnyWriter jsonWriter <span class="sy0">=</span> <span class="kw1">new</span> IpcAnyWriter<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&#160;
AnyMap request <span class="sy0">=</span> ...<span class="sy0">;</span> <span class="co1">// create request</span>
<span class="kw3">String</span> jsonString <span class="sy0">=</span> jsonWriter.<span class="me1">writeJsonObject</span><span class="br0">&#40;</span>request<span class="br0">&#41;</span><span class="sy0">;</span>
HttpPost method <span class="sy0">=</span> <span class="kw1">new</span> HttpPost<span class="br0">&#40;</span><span class="st0">&quot;http://localhost:8080/smila/pipelines/MyPipeline/process&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
method.<span class="me1">setEntity</span><span class="br0">&#40;</span><span class="kw1">new</span> StringEntityjsonString, <span class="st0">&quot;application/json&quot;</span>, <span class="st0">&quot;utf-8&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">try</span> <span class="br0">&#123;</span>
HttpResponse response <span class="sy0">=</span> client.<span class="me1">execute</span><span class="br0">&#40;</span>method<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">if</span> <span class="br0">&#40;</span>response.<span class="me1">getStatusLine</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getStatusCode</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> HttpStatus.<span class="me1">SC_OK</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
<span class="kw3">InputStream</span> content <span class="sy0">=</span> response.<span class="me1">getEntity</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<span class="me1">getContent</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">try</span> <span class="br0">&#123;</span>
AnyMap result <span class="sy0">=</span> <span class="br0">&#40;</span>AnyMap<span class="br0">&#41;</span> jsonReader.<span class="me1">readJsonStream</span><span class="br0">&#40;</span>content<span class="br0">&#41;</span><span class="sy0">;</span>
... <span class="co1">// use result.</span>
<span class="br0">&#125;</span> <span class="kw1">finally</span> <span class="br0">&#123;</span>
IOUtils.<span class="me1">closeQuietly</span><span class="br0">&#40;</span>content<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span> <span class="kw1">else</span> <span class="kw1">if</span> <span class="br0">&#40;</span>response.<span class="me1">getEntity</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">!=</span> <span class="kw2">null</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
EntityUtils.<span class="me1">consume</span><span class="br0">&#40;</span>response.<span class="me1">getEntity</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">// be sure to read the response in error cases, too.</span>
... <span class="co1">// handle error.</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span> <span class="kw1">catch</span> <span class="br0">&#40;</span><span class="kw3">Exception</span> ex<span class="br0">&#41;</span> <span class="br0">&#123;</span>
request.<span class="me1">abort</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>
<h3><span class="mw-headline" id="Apache_HttpClient_3.1">Apache HttpClient 3.1</span></h3>
<p>Using <a rel="nofollow" class="external text" href="http://hc.apache.org/httpclient-legacy/index.html%7CApache">HttpClient 3.1</a> (included in SMILA) and <a rel="nofollow" class="external text" href="http://commons.apache.org/io/">Apache Commons IO</a>, invoking a pipeline could be done like this:
</p>
<div dir="ltr" class="mw-geshi mw-code mw-content-ltr"><div class="java source-java"><pre class="de1"><span class="kw1">import</span> <span class="co2">org.apache.commons.httpclient.HttpClient</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.commons.httpclient.HttpStatus</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.commons.httpclient.methods.PostMethod</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.commons.httpclient.methods.StringRequestEntity</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.eclipse.smila.datamodel.ipc.IpcAnyReader</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.eclipse.smila.datamodel.ipc.IpcAnyWriter</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.eclipse.smila.datamodel.AnyMap</span><span class="sy0">;</span>
<span class="kw1">import</span> <span class="co2">org.apache.commons.io.IOUtils</span><span class="sy0">;</span>
&#160;
HttpClient client <span class="sy0">=</span> <span class="kw1">new</span> HttpClient<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
IpcAnyReader jsonReader <span class="sy0">=</span> <span class="kw1">new</span> IpcAnyReader<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
IpcAnyWriter jsonWriter <span class="sy0">=</span> <span class="kw1">new</span> IpcAnyWriter<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&#160;
AnyMap request <span class="sy0">=</span> ...<span class="sy0">;</span> <span class="co1">// create request</span>
<span class="kw3">String</span> jsonString <span class="sy0">=</span> jsonWriter.<span class="me1">writeJsonObject</span><span class="br0">&#40;</span>request<span class="br0">&#41;</span><span class="sy0">;</span>
PostMethod method <span class="sy0">=</span> <span class="kw1">new</span> PostMethod<span class="br0">&#40;</span><span class="st0">&quot;http://localhost:8080/smila/pipelines/MyPipeline/process&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
method.<span class="me1">setRequestEntity</span><span class="br0">&#40;</span><span class="kw1">new</span> StringRequestEntity<span class="br0">&#40;</span>jsonString, <span class="st0">&quot;application/json&quot;</span>, <span class="st0">&quot;utf-8&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">try</span> <span class="br0">&#123;</span>
client.<span class="me1">executeMethod</span><span class="br0">&#40;</span>postMethod<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">if</span> <span class="br0">&#40;</span>method.<span class="me1">getStatusCode</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="sy0">==</span> HttpStatus.<span class="me1">SC_OK</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
<span class="kw3">InputStream</span> content <span class="sy0">=</span> postMethod.<span class="me1">getResponseBodyAsStream</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">try</span> <span class="br0">&#123;</span>
AnyMap result <span class="sy0">=</span> <span class="br0">&#40;</span>AnyMap<span class="br0">&#41;</span> jsonReader.<span class="me1">readJsonStream</span><span class="br0">&#40;</span>content<span class="br0">&#41;</span><span class="sy0">;</span>
... <span class="co1">// use result.</span>
<span class="br0">&#125;</span> <span class="kw1">finally</span> <span class="br0">&#123;</span>
IOUtils.<span class="me1">closeQuietly</span><span class="br0">&#40;</span>content<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
... <span class="co1">// handle error.</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span> <span class="kw1">finally</span> <span class="br0">&#123;</span>
method.<span class="me1">releaseConnection</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>
<!--
NewPP limit report
CPU time usage: 0.200 seconds
Real time usage: 0.215 seconds
Preprocessor visited node count: 74/1000000
Preprocessor generated node count: 140/1000000
Post‐expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key my_wiki:pcache:idhash:35475-0!*!0!!en!2!* and timestamp 20150414084518 and revision id 366688
-->
</div>
<!-- catlinks -->
<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="http://wiki.eclipse.org/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="http://wiki.eclipse.org/Category:SMILA" title="Category:SMILA">SMILA</a></li></ul></div></div> <!-- /catlinks -->
</div>
</div>
</div>
</div>
<!-- /maincontent -->
<!-- printfooter -->
<div class="printfooter">
Retrieved from "<a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;oldid=366688">http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Using_The_ReST_API&amp;oldid=366688</a>" </div>
<!-- /printfooter -->
<!-- debughtml -->
<!-- /debughtml -->
</div>
<!-- /bodyContent -->
</section>
<!-- /content -->
<!-- footer -->
</div> <section id="footer-contribution-info" style="border-top:1px solid #ccc;" class="footer-offset background-white margin-top-25"><div class="container text-center padding-top-10 padding-bottom-10"><p id="footercredit">This page was last modified 03:09, 8 July 2014 by <a href="http://wiki.eclipse.org/User:Juergen.schumacher.empolis.com" title="User:Juergen.schumacher.empolis.com">Juergen Schumacher</a>. Based on work by <a href="http://wiki.eclipse.org/index.php?title=User:Juergen.schumacher.attensity.com&amp;action=edit&amp;redlink=1" class="new" title="User:Juergen.schumacher.attensity.com (page does not exist)">Juergen Schumacher</a>, <a href="http://wiki.eclipse.org/index.php?title=User:Christian.dein.attensity.com&amp;action=edit&amp;redlink=1" class="new" title="User:Christian.dein.attensity.com (page does not exist)">Christian Dein</a> and <a href="http://wiki.eclipse.org/index.php?title=User:Nadine.auslaender.attensity.com&amp;action=edit&amp;redlink=1" class="new" title="User:Nadine.auslaender.attensity.com (page does not exist)"> </a>.</p><p id="footerviews">This page has been accessed 3,224 times.</p></div></section> </main> <!-- /#main-content-container-row -->
<p id="back-to-top" class="noprint hidden-print">
<a class="visible-xs" href="Using_The_ReST_API.html#top">Back to the top</a>
</p>
<footer role="contentinfo" class="noprint hidden-print">
<div class="container">
<div class="row">
<section id="footer-eclipse-foundation" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Eclipse Foundation</h2>
<ul class="nav">
<li><a href="https://eclipse.org/org/">About us</a></li>
<li><a href="https://eclipse.org/org/foundation/contact.php">Contact Us</a></li>
<li><a href="https://eclipse.org/donate">Donate</a></li>
<li><a href="https://eclipse.org/org/documents/">Governance</a></li>
<li><a href="https://eclipse.org/artwork/">Logo and Artwork</a></li>
<li><a href="https://eclipse.org/org/foundation/directors.php">Board of Directors</a></li>
</ul>
</section>
<section id="footer-legal" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Legal</h2>
<ul class="nav">
<li><a href="https://eclipse.org/legal/privacy.php">Privacy Policy</a></li>
<li><a href="https://eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
<li><a href="https://eclipse.org/legal/copyright.php">Copyright Agent</a></li>
<li><a href="https://eclipse.org/org/documents/epl-v10.php">Eclipse Public License </a></li>
<li><a href="https://eclipse.org/legal/">Legal Resources </a></li>
</ul>
</section>
<section id="footer-useful-links" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Useful Links</h2>
<ul class="nav">
<li><a href="https://bugs.eclipse.org/bugs/">Report a Bug</a></li>
<li><a href="http://help.eclipse.org/">Documentation</a></li>
<li><a href="https://eclipse.org/contribute/">How to Contribute</a></li>
<li><a href="https://eclipse.org/mail/">Mailing Lists</a></li>
<li><a href="https://eclipse.org/forums/">Forums</a></li>
<li><a href="http://marketplace.eclipse.org/">Marketplace</a></li>
</ul>
</section>
<section id="footer-other" class="col-xs-offset-1 col-xs-11 col-sm-7 col-md-6 col-md-offset-0">
<h2 class="section-title">Other</h2>
<ul class="nav">
<li><a href="https://eclipse.org/ide/">IDE and Tools</a></li>
<li><a href="https://eclipse.org/projects">Community of Projects</a></li>
<li><a href="https://eclipse.org/org/workinggroups/">Working Groups</a></li>
</ul>
<ul class="list-inline social-media">
<li><a href="https://twitter.com/EclipseFdn"><i class="fa fa-twitter-square"></i></a></li>
<li><a href="https://plus.google.com/+Eclipse"><i class="fa fa-google-plus-square"></i></a></li>
<li><a href="https://www.facebook.com/eclipse.org"><i class="fa fa-facebook-square"></i> </a></li>
<li><a href="https://www.youtube.com/user/EclipseFdn"><i class="fa fa-youtube-square"></i></a></li>
</ul>
</section>
<div id="copyright" class="col-xs-offset-1 col-sm-14 col-md-24 col-md-offset-0">
<div>
<span><img src="http://eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-logo-bw-800x188.png" alt="Eclipse.org black and white logo" width="166" height="39" id="logo-eclipse-white"/></span>
<p id="copyright-text">Copyright &copy; 2014 The Eclipse Foundation. All Rights Reserved.</p>
</div>
</div>
<a href="Using_The_ReST_API.html#" class="scrollup">Back to the top</a>
</div>
</div>
</footer>
<script src="http://wiki.eclipse.org/skins/solstice/public/javascript/main.min.js"></script>
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-910670-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script> <!-- /footer -->
<script>/*<![CDATA[*/window.jQuery && jQuery.ready();/*]]>*/</script><script>if(window.mw){
mw.loader.state({"skins.solstice":"loading","site":"ready","user":"ready","user.groups":"ready"});
}</script>
<script src="http://wiki.eclipse.org/load.php?debug=false&amp;lang=en&amp;modules=skins.solstice&amp;only=scripts&amp;skin=solstice&amp;*"></script>
<script>if(window.mw){
mw.loader.load(["mediawiki.action.view.postEdit","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest"],null,true);
}</script>
<script>if(window.mw){
mw.config.set({"wgBackendResponseTime":446});
}</script> </body>
</html>