class MagicApiTpl {

    public static final String MAGIC_API_PERMISSION = "magic-api.ftl";

    @Resource
    private MagicAPIProperties magicAPIProperties;

    @Resource
    private EruptContextService eruptContextService;

    @TplAction(MAGIC_API_PERMISSION)
    public Map<String, Object> magicApiAction() {<FILL_FUNCTION_BODY>}

}

        Map<String, Object> map = new HashMap<>();
        map.put("web", magicAPIProperties.getWeb());
        map.put("token", eruptContextService.getCurrentToken());
        map.put("v", EruptInformation.getEruptVersion());
        map.put("hash", this.hashCode());
        return map;
    
<no_super_class>