com.github.liuanxin.api.constant.ApiConst Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-document Show documentation
Show all versions of api-document Show documentation
Collect api document, support to spring mvc
package com.github.liuanxin.api.constant;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.regex.Pattern;
public final class ApiConst {
public static final String CONTROLLER_NAME = "document-collect-controller";
public static final String URL_PREFIX = "/api";
public static final String URL_CLEAR = "/clear";
public static final String URL_PROJECT = "/project";
public static final String URL_INFO = "/info";
public static final String PLACEHOLDER = "id";
public static final String URL_EXAMPLE = "/example/{" + PLACEHOLDER + "}.json";
public static final String PRODUCES = "application/json; charset=UTF-8";
public static final String EMPTY = "";
public static final String SPACE = " ";
public static final String SPLIT = ",";
public static final String HORIZON = "-";
public static final String FILE_TYPE = "file";
public static final Date NOW = new Date();
public static final String HP = "http:";
public static final String HPS = "https:";
public static final String SCHEME = "//";
public static final String HTTP = HP + SCHEME;
public static final String HTTPS = HPS + SCHEME;
public static final String URL_SPLIT = "/";
public static final List DATES = Arrays.asList("date", "time", "datetime");
public static final Pattern ID_URL_PATTERN = Pattern.compile("\\{.*?}");
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy