SStorageRest

From Gcube Wiki
Revision as of 12:55, 8 March 2017 by Roberto.cirillo (Talk | contribs) (Usage examples)

Jump to: navigation, search


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