#19 add rest annotation support