Difference between revisions of "SStorageRest"

From Gcube Wiki
Jump to: navigation, search
(Usage examples)
(Usage examples)
Line 47: Line 47:
  
 
In this way the service return all the object in the collection.
 
In this way the service return all the object in the collection.
 
Put method is used to update resource:
 
  
 
= Deployment =
 
= Deployment =

Revision as of 13:24, 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.

Deployment