private static void addRequestMappingParamDoc ( Set < ApiParamDoc > apiParamDocs , RequestMapping requestMapping ) { if ( requestMapping . params ( ) . length > 0 ) { for ( String param : requestMapping . params ( ) ) { String [ ] splitParam = param . split ( "=" ) ; if ( splitParam . length > 1 ) { apiParamDocs . add ( new ApiParamDoc ( splitParam [ 0 ] , "" , JSONDocTypeBuilder . build ( new JSONDocType ( ) , String . class , null ) , "true" , new String [ ] { splitParam [ 1 ] } , null , null ) ) ; } else { apiParamDocs . add ( new ApiParamDoc ( param , "" , JSONDocTypeBuilder . build ( new JSONDocType ( ) , String . class , null ) , "true" , new String [ ] { } , null , null ) ) ; } } } }
Checks the request mapping annotation value and adds the resulting