JSONDoc Flows Not Showing in Documentation -
i using jsondoc documentation on rest api , reason flows show description , give error
the following errors prevent correct functionality of playground , not provide enough documentation data api users:
- no method found id: session_create
i have flow constants defined in class follows:
public class apiflowconstants { public final static string session_create = "session_create"; public static final string create_rfi = "create_rfi"; public static final string get_rfi = "get_rfi"; public static final string list_rfis = "list_rfis"; public static final string update_rfi = "update_rfi"; public static final string delete_rfi = "delete_rfi"; }
i have controller classes annotated this:
@apimethod(id = apiflowconstants.create_rfi) @requestmapping(value = "/", method = requestmethod.get) public list<bamrfi> getallrfis(){ java.util.list<bamrfi> rfis = bamrfirepository.findall(); return rfis; } @apimethod(id = apiflowconstants.session_create) @requestmapping(value = "/", method = requestmethod.get) public string getsessiontoken(@pathvariable(value="seed") string seed){ string token = token.gettoken(seed); return token; }
and flow control classes this:
@apiflow(name = "create rfi flow", description = "creates new bam rfi", steps = { @apiflowstep(apimethodid = apiflowconstants.session_create), @apiflowstep(apimethodid = apiflowconstants.create_rfi) }) public void rficreateflow() { }
not sure why flows not finding matching id, using version 1.2.5 , compiling using java 8.
it seems not have method annotated @apimethod(id = apiflowconstants.session_create)
. in code reported have method annotated @apimethod(id = apiflowconstants.create_rfi)
Comments
Post a Comment