Extract the RestApiParam allowedvalues from an enum

pull request for https://github.com/loic911/restapidoc/issues/24