Feature #1781

Social Networking Library: REST interface

Added by Massimiliano Assante about 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:Dec 10, 2015
Priority:NormalDue date:Jan 16, 2016
Assignee:Costantino Perciante% Done:

100%

Category:portal
Sprint:zz - UnSprintable
Milestones:
Duration: 27

Description

The Social Networking Library should be capable of being contacted not only from webapps running in the portal but also from the outside world in a secure and safe manner.


Related issues

Related to gCube - Support #1329: Ability to post news on a VRE from the OpenAIRE workflow ... Closed Nov 10, 2015
Related to BlueBRIDGE - Project Task #700: T10.3 Federated Resources Management [Months: 1-29] Closed Mar 07, 2016 Apr 30, 2016
Related to gCube - Release #1862: org.gcube.portal.notifications-common-library.1-2-0 Released Dec 21, 2015
Related to gCube - Release #1864: org.gcube.portal.social-networking-library-ws.1-0-0 Released Dec 21, 2015

History

#1 Updated by Massimiliano Assante about 4 years ago

  • Related to Support #1329: Ability to post news on a VRE from the OpenAIRE workflow manager added

#2 Updated by Massimiliano Assante about 4 years ago

  • Status changed from New to In Progress

#3 Updated by Costantino Perciante almost 4 years ago

  • % Done changed from 0 to 40

A subset of the methods available in the social-networking-library written by Massimiliano has been exposed up to now. The first part of the http path you need to use is this one: http://dev.d4science.org/social-networking-library-ws/rest/

Two (HTTP-POST) methods are the following ones:
1) tokens/generateApplicationToken that accepts as (form) parameters "appid" and "token" (the token should belong to a user and the appid is the identifier of the application for which an ApplicationProfile alread exists. You got an error if the appid doesn't exist or the token is not valid.)
2) feeds/writeFeedApplication that accepts as (form) parameters "text" (text of the post), "params" (additional parameters if your application supports the direct opening of of this update's object e.g. id=12345&type=foo), "previewtitle" (a title for the preview of the post), "previewdescription" (a description for the preview of the post), "httpimageurl" (if you want to put an image, pass its url), "token" that must be an application token (likely generated by invoking the previous method).

I've tested them with this firefox plugin https://addons.mozilla.org/it/firefox/addon/restclient/
Please remember to set the in the http header the Content-Type as application/x-www-form-urlencoded.

Other methods are available, look at https://wiki.gcube-system.org/gcube/Social_Networking_Library_Web_Service_Interface for more information.

#4 Updated by Massimiliano Assante almost 4 years ago

  • % Done changed from 40 to 80

@alessia.bardi@isti.cnr.it we completed the documentation wiki page, if you have any question feel free to ask
https://wiki.gcube-system.org/gcube/Social_Networking_Library_Web_Service_Interface

#5 Updated by Massimiliano Assante almost 4 years ago

  • Related to Project Task #700: T10.3 Federated Resources Management [Months: 1-29] added

#6 Updated by Costantino Perciante almost 4 years ago

  • % Done changed from 80 to 100
  • Status changed from In Progress to Feedback

#7 Updated by Massimiliano Assante almost 4 years ago

  • Related to Release #1862: org.gcube.portal.notifications-common-library.1-2-0 added

#8 Updated by Massimiliano Assante almost 4 years ago

  • Related to Release #1864: org.gcube.portal.social-networking-library-ws.1-0-0 added

#9 Updated by Massimiliano Assante almost 4 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF