private static String convertActionTypeToIntent ( RamlActionType actionType , boolean isIdInPath ) { switch ( actionType ) { case DELETE : return "delete" ; case GET : return "get" ; case POST : if ( ! isIdInPath ) { return "create" ; } case PUT : return "update" ; case PATCH : return "modify" ; default : return "do" ; } }
Attempts to convert the Http Verb into a textual representation of Intent based on REST conventions