Magic Software Interview Question

what is rest api ? Coding samples