supporting new flag 'isREST'

related to: https://github.com/OhadR/oAuth2-sample/issues/43