<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hello Giovanni,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">You can easily do it by creating some JSPs in your OpenCms module that implement your interface contracts.</div><div class="gmail_default" style="font-family:verdana,sans-serif">Using org.json library, you are able to retrieve input parameters, perform the required actions and return a well-formed JSON document in output.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><div><img src="cid:ii_k71y84cf2" alt="image.png" width="786" height="238" style="margin-right: 0px;"><br></div><div><br></div><div>Kind regards</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 25, 2020 at 2:21 PM <<a href="mailto:giovanni.daquino@intellisync.it">giovanni.daquino@intellisync.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="IT"><div class="gmail-m_7084722251635117724WordSection1"><p class="MsoNormal">Hello everyone, <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am wondering if anybody has successfully implemented a REST or really any kind of APIs in OpenCMS. I would like to extend OpenCMS to use it headlessly. I think you should add one or more modules and have the module expose some endpoints. Is this correct?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thank you,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span lang="EN-GB" style="color:rgb(0,160,153)">Giovanni Andrea D’Aquino<u></u><u></u></span></p><p class="MsoNormal"><b><span lang="EN-GB" style="font-size:10pt;color:rgb(0,160,153)">Software Engineer<u></u><u></u></span></b></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:Helvetica,sans-serif;color:black"><img width="150" height="43" id="gmail-m_7084722251635117724Immagine_x0020_1" src="cid:1707c99bfe44cff311" alt="Descrizione: picturemessage_2w1anxdt.xg3 (1)"></span><span><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:13.5pt;font-family:Roboto"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:13.5pt;color:rgb(0,160,153)">INTELLISYNC Srl<br></span><span lang="EN-GB" style="font-size:10pt;color:rgb(0,160,153)">Via Sclafani, 40/B</span><span lang="EN-GB" style="font-size:10pt;color:rgb(0,160,153)"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10pt;color:rgb(0,160,153)">Free Mind Foundry Innovation Hub<br>95024 Acireale (CT) Italy<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10pt;color:rgb(0,160,153)">Tel/Fax: (+39) 3475744346<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:rgb(0,160,153)"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;color:rgb(0,160,153)">Join our communities and get updated<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;color:rgb(0,160,153)"><u></u> <u></u></span></p><p class="MsoNormal"><a href="https://www.linkedin.com/company/intellisync" target="_blank"><span style="font-size:10pt;color:blue;text-decoration:none"><img border="0" width="23" height="23" id="gmail-m_7084722251635117724Picture_x0020_2" src="cid:1707c99bfe55b16b22" alt="linkedin_email"></span></a><span lang="EN-US"><u></u><u></u></span></p><p class="MsoNormal"><span lang="DE" style="color:rgb(25,66,116)"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:8pt;color:rgb(0,160,153)">This email and any files transmitted with it are confidential and may be privileged and are intended solely for the use of the individual or entity to whom they are addressed. <br>If you are not an addressee, any unauthorized direct or indirect dissemination, distribution, publication or copying of this message and any attachments is strictly prohibited. <br>If you have received this email in error please notify the sender immediately, and delete this email from your system</span><span lang="EN-US" style="color:rgb(0,160,153)"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>

    
    <div dir="ltr" style="vertical-align:middle;background-color:rgb(255,255,255);color:rgb(0,64,94);font-family:"Trebuchet MS";font-size:13px;max-width:666px">
        
        
        <table cellpadding="0" cellspacing="0" style="width:100%">
            <tbody><tr>
                <td width="22.5%">
                    <div>
                        <img width="90%" src="https://email-cdn.eurelis.com/profils/api.png" style="max-width: 150px;">
                    </div>
                </td>
                <td style="font-size:1.1em;color:rgb(0,64,94)">
                    <h3 style="margin:5px;font-size:1.3em">Antoine Pineau</h3>
                    <p style="margin:5px">CTO</p>
                    <p style="margin:5px">Eurelis</p>
                </td>
                <td width="1%"></td>
                <td width="1" style="border-left:1px solid rgb(204,5,123)"></td>
                <td width="2%"></td>
                <td>
                    <table cellpadding="0" cellspacing="0" style="font-size:0.9em">
                        <tbody><tr height="25">
                            <td width="30">
                                <table cellpadding="0" cellspacing="0">
                                    <tbody><tr>
                                        <td style="vertical-align:bottom">
                                            <img width="15" src="https://email-cdn.eurelis.com/pictos/phone.png" style="display: block; background-color: rgb(204, 5, 123);">
                                        </td>
                                    </tr>
                                </tbody></table>
                            </td>
                            <td style="padding:0px">
                                <a href="tel:+33149972022" style="color:rgb(0,64,94);text-decoration:none" target="_blank">+33(0)1 4997 2022</a>
                            </td>
                        </tr>
                        <tr height="25">
                            <td width="30">
                                <table cellpadding="0" cellspacing="0">
                                    <tbody><tr>
                                        <td style="vertical-align:bottom">
                                            <img width="15" src="https://email-cdn.eurelis.com/pictos/mail.png" style="display: block; background-color: rgb(204, 5, 123);">
                                        </td>
                                    </tr>
                                </tbody></table>
                            </td>
                            <td style="padding:0px">
                                <a href="mailto:a.pineau@eurelis.com" style="color:rgb(0,64,94);text-decoration:none" target="_blank">a.pineau@eurelis.com</a>
                            </td>
                        </tr>
                        <tr height="25">
                            <td width="30">
                                <table cellpadding="0" cellspacing="0">
                                    <tbody><tr>
                                        <td style="vertical-align:bottom">
                                            <img width="15" src="https://email-cdn.eurelis.com/pictos/url.png" style="display: block; background-color: rgb(204, 5, 123);">
                                        </td>
                                    </tr>
                                </tbody></table>
                            </td>
                            <td style="padding:0px">
                                <a href="https://www.eurelis.com/" style="color:rgb(0,64,94);text-decoration:none" target="_blank">https://www.eurelis.com</a>
                            </td>
                        </tr>
                        <tr height="25">
                            <td width="30">
                                <table cellpadding="0" cellspacing="0">
                                    <tbody><tr>
                                        <td style="vertical-align:bottom">
                                            <img width="15" src="https://email-cdn.eurelis.com/pictos/location.png" style="display: block; background-color: rgb(204, 5, 123);">
                                        </td>
                                    </tr>
                                </tbody></table>
                            </td>
                            <td style="padding:0px">
                                <span>
                                    <a href="https://www.google.com/maps/place/24+Rue+Kerv%C3%A9gan,+44000+Nantes/@47.2127119,-1.5584183,17z/data=!3m1!4b1!4m5!3m4!1s0x4805eea897ad3fbb:0xadb32e71e983a75c!8m2!3d47.2127083!4d-1.5562296" style="color:rgb(0,64,94);text-decoration:none" target="_blank">24 rue Kervégan, 44000 Nantes</a>
                                    <br>
                                    <a href="https://www.google.com/maps/place/Eurelis/@48.8954005,2.2435295,17z/data=!3m1!4b1!4m5!3m4!1s0x47e665063aed13ff:0xe8f9697a486f03c7!8m2!3d48.895397!4d2.2457182" style="color:rgb(0,64,94);text-decoration:none" target="_blank">14 rue du Sergent Bobillot, 92400 Courbevoie</a>
                                </span>
                            </td>
                        </tr>
                    </tbody></table>
                </td>
            </tr>
        </tbody></table>
        <table cellpadding="0" cellspacing="0" style="width:100%">
            <tbody><tr>
                <td height="24"><br>
                </td>
            </tr>
            <tr>
                <td height="1" style="width:100%;border-bottom:1px solid rgb(204,5,123);display:block"></td>
            </tr>
            <tr>
                <td height="24">
                    <br>
                </td>
            </tr>
        </tbody></table>
        <table cellpadding="0" cellspacing="0" style="width:100%">
            <tbody><tr style="vertical-align:top">
                <td>
                    <img width="130" src="https://email-cdn.eurelis.com/eurelis.png" style="max-width: 130px; display: inline-block;">
                </td>
                <td style="text-align:right">
                    <table cellpadding="0" cellspacing="0" style="vertical-align:middle;display:inline-block">
                        <tbody><tr>
                            <td>
                                <a href="https://www.facebook.com/Agence.Eurelis" target="_blank">
                                    <img height="24" src="https://email-cdn.eurelis.com/socials/facebook.png" alt="facebook" style="max-width: 130px; display: block; background-color: rgb(0, 64, 94);">
                                </a>
                            </td>
                            <td width="5">
                                <div></div>
                            </td>
                            <td>
                                <a href="https://twitter.com/Agence_Eurelis" target="_blank">
                                    <img height="24" src="https://email-cdn.eurelis.com/socials/twitter.png" alt="twitter" style="max-width: 130px; display: block; background-color: rgb(0, 64, 94);">
                                </a>
                            </td>
                            <td width="5">
                                <div></div>
                            </td>
                            <td>
                                <a href="https://www.linkedin.com/company/eurelis" target="_blank">
                                    <img height="24" src="https://email-cdn.eurelis.com/socials/linkedin.png" alt="linkedin" style="max-width: 130px; display: block; background-color: rgb(0, 64, 94);">
                                </a>
                            </td>
                            <td width="5">
                                <div></div>
                            </td>
                        </tr>
                    </tbody></table>
                </td>
            </tr>
        </tbody></table>
    </div>

</div></div></div></div></div>