When returning a single item

Below is the general structure of the data returned from the endpoint

{
  data: //The data of the item
  operations: {
	  operationName1: {
	  // Details of operation 1
		  url: "the url to perform the action",
		  // additional restrictions
	  },
	  operationName2: {
	  // Details of operation 2
		  url: "the url to perform the action",
		  // additional restrictions
	  }
  }
}

When returning a list of data

Below is the general structure of the data when a list of data is returned from the endpoint

{
  data: [
   // List of objects that all follow the pattern of the single returned item above
  ],
  operations: {
	  // Examples below
    next: {
	    url: "endpoint to get the next data if pagination is used",
    },
    previous: {
	    url: "endpoint to get the previous data if pagination is used",
    },
  },
}