REST api for village application