- 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 parambook_id
- Get book details: HTTP GET -
- 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