OICR interview question

Difference between rest and graphql ?