CGI Interview Question

How much do I know about REST API? How do we test API related code?