Ewa Books CRU

  • Install dependencies with composer
  • Endpoint is (in) base directory (index.php)
  • Implemented actions are:
    • Get book details: HTTP GET - book_id query param
    • Create book row: HTTP POST - payload with keys name, author
    • Update book details: HTTP PUT - payload with keys name, author and query param book_id
  • Can be tested with Postman (if there is no DB connection there are suitable generated responses)
  • Import database from database.sql file
  • Create .env file and put DB credentials like in .env.example