add first version of rest-api