#description :
- You can create, edit, list, delete users
- Build secure login API for user
- Create secure and simple API to publish posts
#instllation
- clone the project
git clone [email protected]:badr4php/eappEra-task.git
- set databae credintial in
config/database.php
- import
eappEra.sql
file to you DB
#Test login Api
- login uri
/index.php/api/auth/login
- payload
{"email":"[email protected]", "password":"password"}
- Http request method
POST
#Test Posts Api
- create post url is
index.php/api/posts/store
- create post payload
{"title":"title", "content":"content", "usre_id":1}
- Http request method
POST
- list posts url is
index.php/api/posts
-Http request methodGET