Finish first impl of rest-metadata