Class TopicsController

java.lang.Object
eu.dnetlib.common.controller.AbstractDnetController
eu.dnetlib.broker.controllers.TopicsController

@RestController @RequestMapping("/api/topic-types") public class TopicsController extends AbstractDnetController
  • Constructor Details

    • TopicsController

      public TopicsController()
  • Method Details

    • listTopicTypes

      @GetMapping("") public Iterable<TopicType> listTopicTypes()
    • registerTopicType

      @PostMapping("/add") public TopicType registerTopicType(@RequestParam String name, @RequestParam String expression, @RequestParam String producerId, @RequestParam String mapKeys)
    • getTopicType

      @GetMapping("/{id}") public TopicType getTopicType(@PathVariable String id)
    • deleteTopicType

      @DeleteMapping("/{id}") public List<String> deleteTopicType(@PathVariable String id)
    • clearTopicTypes

      @DeleteMapping("") public Map<String,Object> clearTopicTypes()