Fixed api to conform to jsonapi.org spec.