Add REST validator
Make it static