The Content-Type header field is used to specify the nature of the data in the body of an entity, by giving type and subtype identifiers, and by providing auxiliary information that may be required for certain types.
What is the "Accept : application/json" header?
I've made it all the way down to "Validation and Exception Handling" on the sample code https://code.tutsplus.com/tutorials/build-a-react-app-with-laravel-restful-backend-part-1-laravel-5-api--cms-29442
The section in the tutorial above that line ends with "Open up POSTMAN and the endpoints for the product should be working. Make sure you have the Accept : application/json header enabled."
I'd never heard of POSTMAN. So I downloaded it, and there's a Send button on it.
I don't know where to find an "Accept : application/json header."
I don't know what endpoints are, and I don't know how to test the tutorial Part 1 code on this sample to see if I have even put it together correctly before proceeding to Part 2.
(I'm using Laravel 8.)
(Also, I don't know if this is significant or not diagnostically, but on URL localhost:8000/api/products, I do see all of the rows of the products table, output in plaintext.)
Please or to participate in this conversation.