0 Replies Latest reply on Jun 2, 2015 12:44 PM by butch

    Jive REST 3.4 vs 3.10 - 3.4 share service rejects StreamEntries?

    butch

      We're just in the process of backfilling features from our Jive 8 implementation to Jive 7 and I came across something interesting.

       

      Posting to the Jive REST Rest API v3.10 → Activity service in both Jive 7 and 8 yield a Jive REST Rest API v3.10 → Stream entity.

       

      Both 3.4 and 3.10 have the Share service at Jive REST Rest API v3.10 → Share service  and Jive REST Rest API v3.4 → Share entity

       

      But... it looks like only in the v3.10 API does the Share Service accept StreamEntry URIs?

       

      Am I doing something wrong?  Should StreamEntry objects be converted to some other object first before sharing?

       

      REST API v3.4

      Screenshot from 2015-06-02 15:38:42.png

      {
        "error" : {
          "code" : "objectInvalidURI",
          "message" : "Invalid object URI https://jive7-next.polldev.com:8443/api/core/v3/streamEntries/1014",
          "status" : 400
        }
      }
      

       

      REST API v3.10


      Screenshot from 2015-06-02 15:38:02.png

      {
        "id" : "1033",
        "resources" : {
          "comments" : {
            "allowed" : [ "GET", "POST" ],
            "ref" : "https://jive-next.polldev.com:8443/api/core/v3/shares/1033/comments"
          },
          "read" : {
            "allowed" : [ "POST", "DELETE" ],
            "ref" : "https://jive-next.polldev.com:8443/api/core/v3/shares/1033/read"
          },
          "self" : {
            "allowed" : [ "GET", "DELETE" ],
            "ref" : "https://jive-next.polldev.com:8443/api/core/v3/shares/1033"
          },
          "html" : {
            "allowed" : [ "GET" ],
            "ref" : "https://jive-next.polldev.com:8443/inbox/share/1033"
          }
        },
        "followerCount" : 0,
        "published" : "2015-06-02T19:36:18.469+0000",
        "tags" : [ ],
        "updated" : "2015-06-02T19:36:18.469+0000",
        "iconCss" : "jive-icon-med jive-icon-share",
        "parentPlace" : {
          "id" : "1",
          "html" : "https://jive-next.polldev.com:8443/people/admin",
          "name" : "Butch Marshall",
          "type" : "person",
          "uri" : "https://jive-next.polldev.com:8443/api/core/v3/people/1"
        },
        "author" : {
          "id" : "1",
          "resources" : {
            "reports" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@reports"
            },
            "followingIn" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/followingIn"
            },
            "images" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/images"
            },
            "activity" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/activities"
            },
            "manager" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@manager"
            },
            "social" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@social"
            },
            "streams" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/streams"
            },
            "recognition" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@recognition"
            },
            "trendingContent" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@trendingContent"
            },
            "trendingPlaces" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@trendingPlaces"
            },
            "avatar" : {
              "allowed" : [ "PUT", "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/avatar?a=1017"
            },
            "followers" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@followers"
            },
            "pages" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/pages"
            },
            "colleagues" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@colleagues"
            },
            "following" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@following"
            },
            "members" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/members/people/1"
            },
            "self" : {
              "allowed" : [ "PUT", "GET", "DELETE" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1"
            },
            "html" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/people/admin"
            },
            "securityGroups" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/securityGroups"
            },
            "extprops" : {
              "allowed" : [ "GET", "POST", "DELETE" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/extprops"
            },
            "tasks" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/tasks"
            }
          },
          "displayName" : "Butch Marshall",
          "emails" : [ {
            "jive_label" : "Email",
            "primary" : true,
            "type" : "work",
            "value" : "dev_support@polldev.com",
            "jive_displayOrder" : 3,
            "jive_summaryDisplayOrder" : 2,
            "jive_showSummaryLabel" : true
          } ],
          "jive" : {
            "level" : {
              "imageURI" : "https://jive-next.polldev.com:8443/api/core/v3/images/status/statusicon-48.gif",
              "name" : "Wayfarer",
              "points" : 25
            },
            "externalContributor" : false,
            "username" : "admin"
          },
          "name" : {
            "familyName" : "Marshall",
            "formatted" : "Butch Marshall",
            "givenName" : "Butch"
          },
          "type" : "person"
        },
        "content" : {
          "text" : "
      Check out this amazing Thanks!.
      ",
          "editable" : false,
          "type" : "text/html"
        },
        "parent" : "https://jive-next.polldev.com:8443/api/core/v3/people/1",
        "replyCount" : 0,
        "status" : "published",
        "subject" : "Check out this amazing Thanks!.",
        "viewCount" : 1,
        "visibleToExternalContributors" : false,
        "parentVisible" : true,
        "parentContentVisible" : true,
        "participants" : [ {
          "id" : "2008",
          "resources" : {
            "reports" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@reports"
            },
            "followingIn" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/followingIn"
            },
            "images" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/images"
            },
            "activity" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/activities"
            },
            "manager" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@manager"
            },
            "social" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@social"
            },
            "streams" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/streams"
            },
            "recognition" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@recognition"
            },
            "trendingContent" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@trendingContent"
            },
            "trendingPlaces" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@trendingPlaces"
            },
            "avatar" : {
              "allowed" : [ "PUT", "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/avatar?a=1022"
            },
            "followers" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@followers"
            },
            "pages" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/pages"
            },
            "colleagues" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@colleagues"
            },
            "following" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/@following"
            },
            "members" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/members/people/2008"
            },
            "self" : {
              "allowed" : [ "PUT", "GET", "DELETE" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008"
            },
            "html" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/people/sylvester%40polldevmail.com"
            },
            "securityGroups" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/securityGroups"
            },
            "extprops" : {
              "allowed" : [ "GET", "POST", "DELETE" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008/extprops"
            }
          },
          "displayName" : "Sylvester De Paiva",
          "emails" : [ {
            "jive_label" : "Email",
            "primary" : true,
            "type" : "work",
            "value" : "sylvester@polldevmail.com",
            "jive_displayOrder" : 3,
            "jive_summaryDisplayOrder" : 2,
            "jive_showSummaryLabel" : true
          } ],
          "jive" : {
            "level" : {
              "imageURI" : "https://jive-next.polldev.com:8443/api/core/v3/images/status/statusicon-47.gif",
              "name" : "Newbie",
              "points" : 13
            },
            "externalContributor" : false,
            "username" : "sylvester@polldevmail.com"
          },
          "name" : {
            "familyName" : "De Paiva",
            "formatted" : "Sylvester De Paiva",
            "givenName" : "Sylvester"
          },
          "type" : "person"
        } ],
        "viewers" : [ {
          "uri" : "https://jive-next.polldev.com:8443/api/core/v3/people/2008"
        } ],
        "sharedContent" : {
          "id" : "1017",
          "resources" : {
            "comments" : {
              "allowed" : [ "GET", "POST" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/streamEntries/1017/comments"
            },
            "self" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/streamEntries/1017"
            },
            "html" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/streamentry/1017"
            },
            "likes" : {
              "allowed" : [ "GET" ],
              "ref" : "https://jive-next.polldev.com:8443/api/core/v3/streamEntries/1017/likes"
            }
          },
          "published" : "2015-06-01T20:08:26.097+0000",
          "updated" : "2015-06-01T20:08:26.404+0000",
          "author" : {
            "id" : "1",
            "resources" : {
              "reports" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@reports"
              },
              "followingIn" : {
                "allowed" : [ "GET", "POST" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/followingIn"
              },
              "images" : {
                "allowed" : [ "GET", "POST" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/images"
              },
              "activity" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/activities"
              },
              "manager" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@manager"
              },
              "social" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@social"
              },
              "streams" : {
                "allowed" : [ "GET", "POST" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/streams"
              },
              "recognition" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@recognition"
              },
              "trendingContent" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@trendingContent"
              },
              "trendingPlaces" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@trendingPlaces"
              },
              "avatar" : {
                "allowed" : [ "PUT", "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/avatar?a=1017"
              },
              "followers" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@followers"
              },
              "pages" : {
                "allowed" : [ "GET", "POST" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/pages"
              },
              "colleagues" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@colleagues"
              },
              "following" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/@following"
              },
              "members" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/members/people/1"
              },
              "self" : {
                "allowed" : [ "PUT", "GET", "DELETE" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1"
              },
              "html" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/people/admin"
              },
              "securityGroups" : {
                "allowed" : [ "GET" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/securityGroups"
              },
              "extprops" : {
                "allowed" : [ "GET", "POST", "DELETE" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/extprops"
              },
              "tasks" : {
                "allowed" : [ "GET", "POST" ],
                "ref" : "https://jive-next.polldev.com:8443/api/core/v3/people/1/tasks"
              }
            },
            "displayName" : "Butch Marshall",
            "emails" : [ {
              "jive_label" : "Email",
              "primary" : true,
              "type" : "work",
              "value" : "dev_support@polldev.com",
              "jive_displayOrder" : 3,
              "jive_summaryDisplayOrder" : 2,
              "jive_showSummaryLabel" : true
            } ],
            "jive" : {
              "level" : {
                "imageURI" : "https://jive-next.polldev.com:8443/api/core/v3/images/status/statusicon-48.gif",
                "name" : "Wayfarer",
                "points" : 25
              },
              "externalContributor" : false,
              "username" : "admin"
            },
            "name" : {
              "familyName" : "Marshall",
              "formatted" : "Butch Marshall",
              "givenName" : "Butch"
            },
            "type" : "person"
          },
          "content" : {
            "text" : "

      You guys are team-machines!

      View this Thanks!

      ",
            "editable" : false,
            "type" : "text/html"
          },
          "subject" : "Butch Marshall sent a Thanks! to Alfred Lau and 1 others",
          "visibleToExternalContributors" : false,
          "type" : "streamEntry"
        },
        "type" : "share"
      }