SAP interview question

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