How to pass and validate nonce in custom REST routes

How to pass and validate nonce in custom REST routes