Skip to content

🔥 Simple PHP code using Codeigniter framework for building Rest API

License

Notifications You must be signed in to change notification settings

moemoe89/simple-codeigniter-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Codeigniter REST API

Simple source code for learning basic backend developer using REST API (login, CRUD).

Demo

Visit Here

Setup

Download or clone Master File and then config & import MySQL database

You can use POSTMAN or anything else for simulate frontend

Test the API

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 :

[POST] /auth/login json { "username" : "admin", "password" : "Admin123$"}

[GET] /book

[POST] /book/create json { "title" : "x", "author" : "xx"}

[PUT] /book/update/:id json { "title" : "y", "author" : "yy"}

[GET] /book/detail/:id

[DELETE] /book/delete/:id

[POST] /auth/logout

About

🔥 Simple PHP code using Codeigniter framework for building Rest API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages