expose IndexDefs through rest api
only unmarshal on index name match