Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shivamka1/jaxrs-json-api-docs

A Java library to generate API documentation in JSON format for JAX-RS annotated classes.
https://github.com/shivamka1/jaxrs-json-api-docs

Last synced: about 8 hours ago
JSON representation

A Java library to generate API documentation in JSON format for JAX-RS annotated classes.

Awesome Lists containing this project

README

        

# jaxrs-json-apidocs
A Java library to generate API documentation in JSON format for JAX-RS annotated classes.

**Sample Input**

``` java
@Path("/messenger")
public interface MessageResourceI {

@GET
@Path("/messages")
@Produces("application/json")
public Response getMessages(@QueryParam("messageId") int messageId);

}
```

**Sample Output**

```
{
"resources": [{
"path": "/messenger/messages",
"requests": [{
"verb": "javax.ws.rs.GET",
"produces": ["application/json"],
"parameters": [{
"title": "messageId",
"type": "int"
}]
}]
}]
}
```


> It currently is capable of parsing only limited JAX-RS annotations. Also, API documentation design is still under consideration.