@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface ApiMethod
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
consumes
An array of strings representing media types consumed by the method, like application/json, application/xml, ...
|
String |
description
A description of what the method does
|
String |
id
A custom identifier to be used inside JSONDoc.
|
String |
path
The relative path for this method (ex.
|
String[] |
produces
An array of strings representing media types produced by the method, like application/json, application/xml, ...
|
String |
responsestatuscode
Response status code that this method will return to the caller.
|
String |
summary
A summary of what the method does.
|
ApiVerb |
verb
The request verb for this method.
|
public abstract String id
public abstract String path
public abstract String summary
public abstract String description
public abstract String[] produces
public abstract String[] consumes
public abstract String responsestatuscode
Copyright © 2015. All rights reserved.