All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.easyopen.support.SopDocController Maven / Gradle / Ivy

Go to download

easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen

There is a newer version: 1.0.4
Show newest version
package com.gitee.easyopen.support;

import com.gitee.easyopen.doc.ApiDocHolder;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

/**
 * @author tanghc
 */
public abstract class SopDocController {

    public abstract String getDocTitle();

    @RequestMapping("/v2/api-docs")
    public Map getDocInfo() {
        Map context = this.getContext();
        context.put("easyopen", "1.16.3");
        context.put("apiModules", ApiDocHolder.getApiDocBuilder().getApiModules());
        context.put("title", getDocTitle());
        return context;
    }

    public Map getContext() {
        return new HashMap<>(8);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy