Difference between revisions of "SStorageRest"

From Gcube Wiki
Jump to: navigation, search
(Created page with "Category:Developer's Guide = Overview = A RESTful service providing functions for create, update, read a json object on MongoDB = Key features = The core of the servic...")
 
(Usage examples)
Line 37: Line 37:
 
==Usage examples ==
 
==Usage examples ==
  
 +
Post method is used to create new resource. Here we are adding new JSON object to the related collection:
 +
 +
http://n039.smart-applications.area.pi.cnr.it:8080/storage/rest/resources?gcube-token=xxxxxxxx
 +
 +
 +
Use get method to check if above json have been added to the related collection:
 +
 +
http://n039.smart-applications.area.pi.cnr.it:8080/storage/rest/resources?gcube-token=xxxxxxxxx
 +
 +
In this way the service return all the object in the collection.
 +
 +
Put method is used to update resource:
  
 
= Deployment =
 
= Deployment =

Revision as of 12:55, 8 March 2017


Overview

A RESTful service providing functions for create, update, read a json object on MongoDB

Key features

The core of the service is java based. It offers a interface for performing CRUD operation through a remote backend over JSON object:

  • Create
  • Read
  • Update
  • Delete


Design and Architecture

TO-DO

Access Mode

TO-DO


Supported Operations

TO-DO

Getting-Started

Maven artifacts

Usage examples

Post method is used to create new resource. Here we are adding new JSON object to the related collection:

http://n039.smart-applications.area.pi.cnr.it:8080/storage/rest/resources?gcube-token=xxxxxxxx


Use get method to check if above json have been added to the related collection:

http://n039.smart-applications.area.pi.cnr.it:8080/storage/rest/resources?gcube-token=xxxxxxxxx

In this way the service return all the object in the collection.

Put method is used to update resource:

Deployment