<?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: swagger vs raml in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21433#M9448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco Business process has Swagger as well from version 1.6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eugenio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2017 16:59:31 GMT</pubDate>
    <dc:creator>eugenio_romano</dc:creator>
    <dc:date>2017-05-02T16:59:31Z</dc:date>
    <item>
      <title>swagger vs raml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21432#M9447</link>
      <description>This is a question that probably can only be answered by Alfresco engineers.The&amp;nbsp;Alfresco BPM has a nice set of APIs that are documented using RAML.The Alfresco ECM has also a set of APIs that are documented&amp;nbsp;with Swagger.Is there a plan to use the same framework for the two platforms ?&amp;nbsp;</description>
      <pubDate>Mon, 01 May 2017 18:54:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21432#M9447</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2017-05-01T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: swagger vs raml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21433#M9448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco Business process has Swagger as well from version 1.6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eugenio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 16:59:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21433#M9448</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2017-05-02T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: swagger vs raml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21434#M9449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Eugenio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if Alfresco has used Swagger only to document the APIs or also to generate the code (for the client and the server side)?&lt;/P&gt;&lt;P&gt;If&amp;nbsp;Swagger has been used only for the documentation, was the documentation produced automatically or written manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 22:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21434#M9449</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2017-05-02T22:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: swagger vs raml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21435#M9450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco, we use &lt;A href="http://springfox.github.io/springfox/" rel="nofollow noopener noreferrer"&gt;SpringFox&lt;/A&gt; to generate the API spec dynamically from annotations in the Process Services code, whilst not technically a Swagger product we do use the official Swagger annotations. SpringFox also bundles a version of Swagger-UI, which we are moving to using as a reference for the API docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding codegen, we have also used &lt;A href="https://github.com/swagger-api/swagger-codegen" rel="nofollow noopener noreferrer"&gt;Swagger codegen&lt;/A&gt; to generate the initial set of bindings inside the Alfresco JavaScript API. There has been no codegen used on the server side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your interest in Swagger and can you elaborate on why these are important concerns to you? Maybe we can share a little more if we understand your use-case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 11:14:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21435#M9450</guid>
      <dc:creator>wabson</dc:creator>
      <dc:date>2017-05-04T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: swagger vs raml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21436#M9451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Will, thank you for your help. I think that you already answered many of my questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am implementing an API for a product that is based on Alfresco.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API is used to manage some complex nested resources&amp;nbsp;that are modelled as folders and contents in Alfresco.&lt;/P&gt;&lt;P&gt;To start, we need to implement some basic CRUD operations for the main resources and later we will add more functionalities.&amp;nbsp;The hierarchy of the resources is complex and it is very important to choose the right tool to implement, document and maintain the API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the API that I am writing will be based on &amp;nbsp;Alfresco webscripts, I&amp;nbsp;thought that it won't be possible to auto&amp;nbsp;generate the code automatically. You confirmed that you haven't used any automation on the server side and this seems to confirm that it won't be&amp;nbsp;possible without implementing a code generator by myself.&lt;/P&gt;&lt;P&gt;If this is true, the tool to choose will need to help with&amp;nbsp;the documentation and the generation of the client code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set of APIs that I started to write&amp;nbsp;is using Jackson for the json serialization and deserialization:&amp;nbsp;the Alfresco&amp;nbsp;webscripts manage java beans that are serialised and de-serialised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To automatically document the API, I started to use RAML 1.0 because I liked how it defines types. Unfortunately,&amp;nbsp;I found out that the&amp;nbsp;current tool available does not work well with Jackson: it practically ignores&amp;nbsp;all the Jackson annotations except @JsonProperty that is also used improperly. I even started to improve their implementation but&amp;nbsp;if Alfresco is not using RAML anymore, I will probably revert to Swagger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am not wrong, you have used the swagger annotations in the BPM module but not in the ECM module. I run some greps on the java code for the public API and I&amp;nbsp;couldn't find any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 14:40:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/swagger-vs-raml/m-p/21436#M9451</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2017-05-04T14:40:16Z</dc:date>
    </item>
  </channel>
</rss>

