Simple source code for learning basic backend developer using REST API (login, CRUD).
Download or clone Master File and then config & import MySQL database
You can use POSTMAN or anything else for simulate frontend
You can test the API by including header Content-Type
,Client-Service
& Auth-Key
with value application/json
,frontend-client
& simplerestapi
in every request
And for API except login
you must include id
& token
that you get after successfully login. The header for both look like this User-ID
& Authorization
List of the API :
url: http://localhost/foldername/index.php/auth/login header: Key: Content-Type Value:application/json
Body: { "username" : "XXX", "password" : "XXX" } Method: POST