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

pub.codex.apix.ApixController Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package pub.codex.apix;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import pub.codex.apix.annotations.Api;
import pub.codex.apix.doc.DocDocument;

@Api("演示API管理")
@RestController
public class ApixController {

    @Autowired
    private DocumentationCache documentationCache;

    @GetMapping("apix/doc")
    @ResponseBody
    public DocDocument api() {

        return new DocDocument(documentationCache.getDocumentationLookup());
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy