Diffusion : Institut Mines- Télécom, Télécom SudParis 1 / 11

Similar documents
The Compatible One Application and Platform Service 1 (COAPS) API User Guide

Cloud Elements! Marketing Hub Provisioning and Usage Guide!

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Paxera Uploader Basic Troubleshooting

Google Cloud Print Administrator Configuration Guide

IDEAL INSTITITE OF MANAGEMENT AND TECHNOLOGY In association with IIT MADRAS Presents SAARANG 2015 National Level CLOUD COMPUTING Championship

OpenPaaS Le réseau social d'entreprise

SafeNet KMIP and Google Cloud Storage Integration Guide

Networks and Services

CloudFTP: A free Storage Cloud

How to use FTP Commander

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

Portal Factory CMIS Connector Module documentation

Copyright Pivotal Software Inc, of 10

Office365Mon Developer API

Technical Overview Simple, Scalable, Object Storage Software

Qlik REST Connector Installation and User Guide

Cloud Elements! Events Management BETA! API Version 2.0

How To Set Up Wiremock In Anhtml.Com On A Testnet On A Linux Server On A Microsoft Powerbook 2.5 (Powerbook) On A Powerbook 1.5 On A Macbook 2 (Powerbooks)

Why NoSQL? Your database options in the new non- relational world IBM Cloudant 1

Getting Started with vcloud Air Object Storage powered by Google Cloud Platform

This presentation covers virtual application shared services supplied with IBM Workload Deployer version 3.1.

This presentation introduces you to the new call home feature in IBM PureApplication System V2.0.

Power Tools for Pivotal Tracker

Cloud Attached Storage 5.0

Leverage Your EMC Storage Investment with User Provisioning for Syncplicity:

Cloud Elements ecommerce Hub Provisioning Guide API Version 2.0 BETA

What s New Guide Time To Know Create

User Manual. Office: For fast & friendly community support join us at GetSatisfaction Visit our Support Page

Analytics Canvas Tutorial: Cleaning Website Referral Traffic Data. N m o d a l S o l u t i o n s I n c. A l l R i g h t s R e s e r v e d

Google Trusted Stores Setup in Magento

Pasquale Vitale Engineering Ingegneria Informatica. FIWARE LAB Cloud Portal

NaviCell Data Visualization Python API

WP4 Mobility-related Data as a Service. D4.2: Cloud-based Intelligent Infrastructure Prototype

Fax User Guide 07/31/2014 USER GUIDE

Getting Started with Clearlogin A Guide for Administrators V1.01

Cloud Backup for Joomla

This document describes the capabilities of NEXT Analytics v5.1 to retrieve data from Google Analytics directly into your spreadsheet file.


A. CREATE HOMEWORK... 5 B. MODIFY HOMEWORK... 8 A. INSTANT FEEDBACK... 9 B. STEP-1 OF GRADING: CLOUD AUTO CHECK... 10

Search and Real-Time Analytics on Big Data

Making OData requests from jquery and/or the Lianja HTML5 Client in a Web App is extremely straightforward and simple.

Definition of the multi- deployment and monitoring strategies

Where We Are. References. Cloud Computing. Levels of Service. Cloud Computing History. Introduction to Data Management CSE 344

Building native mobile apps for Digital Factory

Cloud Provision Widget 1.41

GeoCloud Project Report GEOSS Clearinghouse

Conference Bridge setup

ZeroTurnaround License Server User Manual 1.4.0

API documentation - 1 -

Google App Engine f r o r J av a a v a (G ( AE A / E J / )

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

APP DEVELOPMENT ON THE CLOUD MADE EASY WITH PAAS

Building Java Servlets with Oracle JDeveloper

Advanced Digital Imaging

1 Building, Deploying and Testing DPES application

Outlook Data File navigate to the PST file that you want to open, select it and choose OK. The file will now appear as a folder in Outlook.

SP Term Cloud Installation

File Share Navigator Online 1

Connecting your Virtual Machine to the Internet. BT Cloud Compute. The power to build your own cloud solutions to serve your specific business needs

Hello World RESTful web service tutorial

Traitware Authentication Service Integration Document

GCM for Android Setup Guide

CumuLogic Load Balancer Overview Guide. March CumuLogic Load Balancer Overview Guide 1

WildFire Cloud File Analysis

Wind River. Intelligent Device Platform XT EMS Profile EMS DEVICE MANAGEMENT USER'S GUIDE WIND RIVER 1.0

USER GUIDE for Salesforce

Migration and Developer Productivity Solutions Cloud, Mobile and Web Development Workshop

ICE Trade Vault. Public User & Technology Guide June 6, 2014

UForge 3.4 Release Notes

Manual POLICY PATROL SECURE FILE TRANSFER

Monitoring HP OO 10. Overview. Available Tools. HP OO Community Guides

Reading an sent with Voltage Secur . Using the Voltage Secur Zero Download Messenger (ZDM)

Sophos Mobile Control Installation guide. Product version: 3.5

Online Document Management Software

Open Cloud Computing Interface - Platform

IBM Watson Ecosystem. Getting Started Guide

Using the Push Notifications Extension Part 1: Certificates and Setup

Your Archiving Service

Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

1. Open the preferences screen by opening the Mail menu and selecting Preferences...

Installing NetSupport School for use with the NetSupport School Student extension for Google Chrome

TIMETABLE ADMINISTRATOR S MANUAL

SHIPSTATION / MIVA MERCHANT SETUP GUIDE

Eclipse Exam Tutorial - Pros and Cons

Why API? Using the REST API in an education environment. JAMF Software, LLC

Sonatype CLM for Maven. Sonatype CLM for Maven

Collaborative Open Market to Place Objects at your Service

qliqdirect Active Directory Guide

This tutorial helps the professionals aspiring to make a career in Big Data and NoSQL databases, especially the documents store.

Homework 9 Android App for Weather Forecast

Capturx for SharePoint 2.0: Notification Workflows

REDCap project creation is not possible in the Mobile App

Cloud-based Review System: Moroccan Restaurants as an example

Product Name: Size Chart Popup Version: Document Type: Help doc Author: Milople Inc.

Startup guide for Zimonitor

CA APM Cloud Monitor. Scripting Guide. Release 8.2

Transcription:

OpenPaaS Database API User Guide REST VERSION Télécom, Télécom SudParis 1 / 11

Contributors: Rami Sellami, Telecom SudParis Bruno Defude, Telecom SudParis Table of content 1 Introduction... 3 2 Download and run the erver... 3 3 Test ODBAPI using REST Web client... 4 4 Test ODBAPI using ODBAPIClient... 10 4.1 Concepts comparison... Erreur! Signet non défini. 4.2 Resources model of ODBAPI... Erreur! Signet non défini. 4.3 Panorama of ODBAPI... Erreur! Signet non défini. 4.3.1 Get information about the user's access right... Erreur! Signet non défini. 4.3.2 Get information about an environment... Erreur! Signet non défini. 4.3.3 Get information about a database... Erreur! Signet non défini. 4.3.4 Get information about an entity set... Erreur! Signet non défini. Télécom, Télécom SudParis 2 / 11

1 Introductiion ODBAPI is a streamlined and a unified REST API enabling to execute CRUD operations on different NoSQL and relational databases. ODBAPI decouples cloud applications from data stores alleviating therefore their migration. Moreover, it relieves developers task by removing the burden of managing different APIs. ODBAPI exposes a generic interface that can be implemented according to the different data stores in a PaaS (e.g. MySQL, CouchDB, Riak, etc.). In this user guide, we present ODBAPI implementation including three types of heterogeneous data stores. In addition, we show how to use ODBAPI based on (1) a REST Web client and (2) ODBAPIClient. 2 Downlload and run the ODBAPI server This user guide supposes that CouchDB, MySQL, and Riak DBMSs are already installed in your machine. It is worth noting that Riak is not currently supported Windows operating system. Hence, if you run ODBAPI on windows, you will interact only with MySQL and CouchDB data stores. 2.1 Run ODBAPI server 1- Import the ODBAPI project in Eclipse 2- Right click on the pom.xml a. Run As >> Maven clean b. Run As >> Maven install 3- Open the MainClass class and run it as a Java Application (If the server runs, you will see this message Starting the Simple [HTTP/1.1] server on port 8182 ). 4- Keep the server running and head to the section 3 or 4 to test ODBAPI. Télécom, Télécom SudParis 3 / 11

3 Test ODBAPI usiing REST Web clliient To invoke the ODBAPI operations, one can use any REST client (eg. CURL). In this user guide, we use the Advanced REST client for Google Chrome [1]. Whether you will use the Advanced REST client, we provide a JSON file containing a list of queries. You can upload it directly in this client and select the query that you want to execute. We show below how to upload this JSON file. 1- Click on the button Settings >> Import/export >> Manage 2- In the Import/Export to file section, import the file by clicking on the Choose File button. 3- You will find the list of the imported queries in Saved tab. Télécom, Télécom SudParis 4 / 11

3.1 Create a CouchDB Entity Set named «person» Response 3.2 Retrieve a CouchDB Entity Set named «person» Télécom, Télécom SudParis 5 / 11

Response Télécom, Télécom SudParis 6 / 11

3.3 Delete a CouchDB Entity Set named «person» Response Télécom, Télécom SudParis 7 / 11

3.4 Create a CouchDB Entity with id 1 Response 3.5 Retrieve a CouchDB Entity with id 1 Télécom, Télécom SudParis 8 / 11

Response 3.6 Update a CouchDB Entity with id 1 Response Télécom, Télécom SudParis 9 / 11

3.7 Delete a CouchDB Entity with id 1 Response 4 Test ODBAPI usiing ODBAPIClliient 1- Import the ODBAPIClient project in Eclipse 2- Right click on the pom.xml a. Run As >> Maven clean b. Run As >> Maven install 3- Open the MainClass class and run it as a Java Application. Télécom, Télécom SudParis 10 / 11

We show below examples of use of the ODBAPIClient interacting with MySQL data store. Create an Entity Set named test in the database world CreateEntitySetImpl ces = new CreateEntitySetImpl(); InputStream is1 = new FileInputStream("file/EntitySetMySQL.json"); InputStreamReader isr1 =new InputStreamReader(is1); JSONTokener tokener1 = new JSONTokener(isr1); JSONObject jsonentity1 = new JSONObject(tokener1); ces.createentityset("http://localhost:8182/odbapi/entityset/test"," database/mysql", "world", jsonentity1); Create an Entity with the id 1 in the Entity Set named test CreateEntityImpl ce = new CreateEntityImpl(); InputStream is = new FileInputStream("file/EntityMySQL.json"); InputStreamReader isr=new InputStreamReader(is); JSONTokener tokener = new JSONTokener(isr); JSONObject jsonentity = new JSONObject(tokener); ce.createentity("http://localhost:8182/odbapi/ entityset/test/ entity/1","database/mysql", "world", jsonentity); Retrieve the Entity with the id 1 in the Entity Set named test Delete the Entity with the id 1 in the Entity Set named test RetrieveEntityImpl re = new RetrieveEntityImpl(); re.retrieveentity("http://localhost:8182/odbapi/ entityset/test/ entity/1","datbase/mysql", "world"); DeleteEntitySetImpl des = new DeleteEntitySetImpl(); des.deleteentityset("http://localhost:8182/odbapi/ entityset/test","database/mysql", "world"); References [1] https://chrome.google.com/webstore/detail/advanced-restclient/hgmloofddffdnphfgcellkdfbfbjeloo/related Télécom, Télécom SudParis 11 / 11