转载

Resteasy – 从Javadoc和Annotations生成REST文档

我想找到一种方法从 Java

代码(WADL或HTML)生成漂亮的REST API文档 – 基于JAXB,JAX-RS注释和java doc注释(请不要doclet).

这是我的项目环境

> Spring,没有XML注释

> Rest-easy作为REST提供者

> JAXB和JAX-RS注释

> Mime用于JSON中的rest API

试试 Enunciate .

Enunciate is an engine for dramatically enhancing your Java Web service API.

It’s simple. You develop your Web service API using standard Java technologies and attach Enunciate to your build process. Suddenly, your Web service API is boasting some pretty impressive features:

  • Full HTML documentation of your services, scraped from your JavaDocs.
  • Client-side libraries (e.g. Java, .NET, iPhone, Ruby, Flex, AJAX, GWT, etc.) for developers who want to interface with your API.
  • Interface Definition Documents (e.g. WSDL, WADL, XML-Schema, etc.)
  • Etc.

翻译自:https://stackoverflow.com/questions/8709622/resteasy-generate-rest-documentation-from-javadoc-and-annotations

原文  https://codeday.me/bug/20190112/514959.html
正文到此结束
Loading...