Added endpoint of createAffiliation and getAffiliations