<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing Credential to Share REST API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290835#M243965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pablo, Thanks for the nice reply, but I need to use the Share api and NOT the repo api. Your answer is definitely true for repo, but it seems that the Share api requires a different type of authentication.&amp;nbsp; When called from a browser I can make it work passing over the CRSFilter token and some other attributes, but hoping there's a simpler way to accomplish this from a Java application.&amp;nbsp; I don't need the ftl page to actually DRAW, I just want to get the html back and parse out what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for trying to help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 19:57:12 GMT</pubDate>
    <dc:creator>ddelapasse</dc:creator>
    <dc:date>2015-07-13T19:57:12Z</dc:date>
    <item>
      <title>Passing Credential to Share REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290833#M243963</link>
      <description>From my web app I would like to request the Share metadata edit form and grab the fields/controlTypes to pass over to my Web UI.&amp;nbsp; I realize there are CMIS/Alfresco apis to get the metadata, but we define aspects that reuse properties of existing content model attributes and only share (share-custom-</description>
      <pubDate>Mon, 13 Jul 2015 14:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290833#M243963</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-07-13T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Credential to Share REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290834#M243964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/community/references/RESTful-Repository.html?m=2" rel="nofollow noopener noreferrer"&gt;API RESTful&lt;/A&gt;&lt;SPAN&gt; of Alfresco (webscripts of the repository layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, for the login, in your custom web application, you can use: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;URL: &lt;A _jive_internal="true" href="https://community.alfresco.com/IP:PORT/alfresco/service/api/login" rel="nofollow noopener noreferrer"&gt;http://IP:PORT/alfresco/service/api/login&lt;/A&gt;&lt;BR /&gt;Method: POST&lt;BR /&gt;Request Body: {username:"your-user",password:"your-password"}&lt;BR /&gt;Response: The ticket of your login (i.e.: TICKET_0524c0877175d3da841b0c6c48822e2ae3516824).&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And for the logout:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;URL: &lt;A _jive_internal="true" href="https://community.alfresco.com/IP:PORT/alfresco/service/api/login/ticket/TICKET?alf_ticket=TICKET" rel="nofollow noopener noreferrer"&gt;http://IP:PORT/alfresco/service/api/login/ticket/TICKET?alf_ticket=TICKET&lt;/A&gt;&lt;BR /&gt;Method: DELETE&lt;BR /&gt;Request Body: nothing&lt;BR /&gt;Response: an XML response with code 200&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need get the metadata of a specific content (I suspect you know the node reference), you can use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;URL: &lt;A _jive_internal="true" href="https://community.alfresco.com/IP:PORT/alfresco/service/api/node/content/workspace/SpacesStore/NODEREF?alf_ticket=TICKET" rel="nofollow noopener noreferrer"&gt;http://IP:PORT/alfresco/service/api/node/content/workspace/SpacesStore/NODEREF?alf_ticket=TICKET&lt;/A&gt;&lt;BR /&gt;Method: GET&lt;BR /&gt;Request Body: nothing&lt;BR /&gt;Response: An XML with the data of the content&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For edit the metadata, you can use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;URL: &lt;A _jive_internal="true" href="https://community.alfresco.com/IP:PORT/alfresco/service/api/metadata/node/workspace/SpaceStore/NODEREF?alf_ticket=TICKET" rel="nofollow noopener noreferrer"&gt;http://IP:PORT/alfresco/service/api/metadata/node/workspace/SpaceStore/NODEREF?alf_ticket=TICKET&lt;/A&gt;&lt;BR /&gt;Method: POST&lt;BR /&gt;Request Body (i.e): {properties:{cm:title:"your title",cm:description:"your description"}}&lt;BR /&gt;Response: 200&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, I read which the experts recommend the use of CMIS for edit properties, aspects and the content in general. More information in: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/28804597/set-apects-via-rest-api-call-in-alfresco" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/28804597/set-apects-via-rest-api-call-in-alfresco&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pablo V.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:08:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290834#M243964</guid>
      <dc:creator>arak</dc:creator>
      <dc:date>2015-07-13T16:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Credential to Share REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290835#M243965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pablo, Thanks for the nice reply, but I need to use the Share api and NOT the repo api. Your answer is definitely true for repo, but it seems that the Share api requires a different type of authentication.&amp;nbsp; When called from a browser I can make it work passing over the CRSFilter token and some other attributes, but hoping there's a simpler way to accomplish this from a Java application.&amp;nbsp; I don't need the ftl page to actually DRAW, I just want to get the html back and parse out what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for trying to help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 19:57:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-credential-to-share-rest-api/m-p/290835#M243965</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2015-07-13T19:57:12Z</dc:date>
    </item>
  </channel>
</rss>

