[#632] REST framework

@zzgvh Can you check/merge?