joffrey-bion / livedoc

A not-so-annotation-based documentation generator for REST and websocket services
MIT License
5 stars 2 forks source link

Type-level path not taken into account for inherited methods #34

Closed joffrey-bion closed 7 years ago

joffrey-bion commented 7 years ago

This is a continuation of the discussion in https://github.com/fabiomaffioletti/jsondoc/issues/225.

To summarize, assuming the following situation:

public class ParentController {

    @RequestMapping("/parentMethod")
    public void parentMethod() { }
}

@Controller
@RequestMapping("/typeLevelPath")
public class ChildController extends ParentController {

    @RequestMapping("/childMethod")
    public void childMethod() { }
}

Spring generates the following API:

While Livedoc would document:

joffrey-bion commented 7 years ago

This problem is actually suffered from by other values inside the @RequestMapping annotation, such as consumes, produces, header...