Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Info

You can download the whole Kickstarter-based sample application from our GitLab repository: um-public/tutorial-dynamicfunctional-newsletterrest-contentendpoints

Start a new Kickstarter project

...

Try to invoke the new REST service in your browser:

http://localhost:8080/cmsbs/rest/de.acme.tutorial/hello?a=Hello&b=world

URL mapping

Please note, that de.acme.tutorialController corresponds to the name of your plugin as defined in plugin.desc.json plus the special Controller suffix that tells the backend that this should be exposed as a REST controller.

...

Codeblock
languagegroovy
setup.doLast {
    ...
    
    // Entry-Types:
    def entryTypesDir = new File(pinuts.um.cmsbsConfDir, 'entryTypes')
    fileTree('cmsbs-conf/entryTypes').each {target ->
        ln(target, entryTypesDir)
    }
    
    // UM REST Proxy
    cp('UM/web-integration/cmsbs-restproxy.war', new File(pinuts.um.webappsDir, 'p.war'))
    cp('rest-proxy/cmsbs-restproxy.properties', new File(pinuts.um.serverHome, 'cmsbs-restproxy.properties'))
}

...