Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Build a REST API with Laravel Accessing Data with Resources Testing Book Resources and Routes

Dario Preglej
Dario Preglej
9,200 Points

Post book

Posting a book reasource trough REST client does not work!

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Dario Preglej! I feel like there's not enough information to go on. This could be caused by any number of things including a bug in the REST client extension for VS Code.

I'd be interested to know:

  • what HTTP response code is returned by the server (404, 500, etc)
  • if there was a response code returned by the server
  • if your .env file is set up properly and in the proper place
  • do you have a GitHub repo where you are storing your work?
  • If your Apache instance is running without problem
  • If your MySQL instance is running without problem
  • if your php_error.log file shows anything out of the ordinary
  • does it only not work in the REST client or does it also fail when using Postman?

Let me know! :sparkles: