Read up about json apis and best practices in format https://jsonapi.org/format/