SAP Interview Question

How would you extend an existing project with command line interactions to have it with a REST interface?