AnsweredAssumed Answered

Alfresco Custom Rest Api

Question asked by sanjaybandhniya on Dec 14, 2018
Latest reply on Feb 22, 2019 by rbr

I want to create custom rest api in alfresco.

How can i do that?


I have made following configuration.but it is not working.


<context:component-scan base-package="com.controller"></context:component-scan>


package com.tritex.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@RequestMapping(value = "/contract")
public class TestController {

@RequestMapping(value = "/test", method = RequestMethod.GET)
public String display() {
return "Hello World";