@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.
|
ApiStage |
stage
Indicates the stage of development or release
|
String |
summary
A summary of what the method does.
|
ApiVerb[] |
verb
The request verb for this method.
|
ApiVisibility |
visibility
Indicates the visibility of the 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
public abstract ApiVisibility visibility
public abstract ApiStage stage
Copyright © 2015. All rights reserved.