cleaning up rest service
clean up rest interface ; using swagger;  front-end still to be updated