package com.ecep.contract.api.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ecep.contract.SpringApp;

@RestController
@RequestMapping("/api/bean")
public class BeanApiController {

    @GetMapping("/getBeanDefinitionNames")
    public String[] getBeanDefinitionNames() {
        return SpringApp.getBeanFactory().getBeanDefinitionNames();
    }
}
