<?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 The parameters when using web script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259229#M212359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am using Alfresco Web Script to do some manipulate on Alfresco. Currently, it's ok to add person or create a new site by web script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the question is : How can I know the parameters I have to POST to alfresco ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, if I want to create a new site, I have to POST a JSON data &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"title" : "testSite",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"sitePreset" : "test",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"shortName" : "test",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"description" : "This is my test site",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"isPublic" : false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where I can find these parameters when using web script ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 08:10:53 GMT</pubDate>
    <dc:creator>kevingo</dc:creator>
    <dc:date>2011-07-22T08:10:53Z</dc:date>
    <item>
      <title>The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259229#M212359</link>
      <description>Hello, I am using Alfresco Web Script to do some manipulate on Alfresco. Currently, it's ok to add person or create a new site by web script.However, the question is : How can I know the parameters I have to POST to alfresco ? For example, if I want to create a new site, I have to POST a JSON data {</description>
      <pubDate>Fri, 22 Jul 2011 08:10:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259229#M212359</guid>
      <dc:creator>kevingo</dc:creator>
      <dc:date>2011-07-22T08:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259230#M212360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check the description xml for the webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could find the desc.xml for create site at following location : \alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\site\sites.post.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259230#M212360</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2011-07-22T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259231#M212361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The web script documentation is online.&amp;nbsp;&amp;nbsp; e.g.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.alfresco.com/help/34/community/api" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.com/help/34/community/api&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; However create web site that's not part of the public API which may be why that particular script is not documented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And also if you have admin authority you can see the online webscript index &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/index" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/index&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:37:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259231#M212361</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-07-22T08:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259232#M212362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 09:31:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259232#M212362</guid>
      <dc:creator>kevingo</dc:creator>
      <dc:date>2011-07-22T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259233#M212363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi kevingo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have you find how to specify these parameters in a post request to create a site?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was trying to invoke a specific request using a Firefox add-on called &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/poster-extension/" rel="nofollow noopener noreferrer"&gt;Poster&lt;/A&gt;&lt;SPAN&gt; and I'm able to invoke GET/POST webscripts but I don't know how to send json DATA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 12:03:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259233#M212363</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-05-12T12:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: The parameters when using web script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259234#M212364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I get it. You can use Poster, curl or any other tools to send tha data that you prefer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With Poster you can put data as JSON directly in the request content. For example I created a site using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;URL: &lt;/SPAN&gt;&lt;EM&gt;&lt;A href="http://localhost:8080/share/service/modules/create-site" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/service/modules/create-site&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;User Auth: &lt;/SPAN&gt;&lt;EM&gt;admin&lt;/EM&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;EM&gt;admin&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;Content Type: &lt;/SPAN&gt;&lt;EM&gt;application/json&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and adding the data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility" : "PUBLIC",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "title" : "My Poster Site",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "shortName" : "my Poster Site",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "My Test Site created with Poster",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "sitePreset" : "site-dashboard"&lt;BR /&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's possible do the same with curl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A great article written by Martin Bergljung is available at at &lt;/SPAN&gt;&lt;A href="http://ecmstuff.blogspot.it/2012/03/creating-alfresco-share-sites-with.html" rel="nofollow noopener noreferrer"&gt;http://ecmstuff.blogspot.it/2012/03/creating-alfresco-share-sites-with.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Martin &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 20:13:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/the-parameters-when-using-web-script/m-p/259234#M212364</guid>
      <dc:creator>acarpine</dc:creator>
      <dc:date>2012-05-12T20:13:45Z</dc:date>
    </item>
  </channel>
</rss>

