Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

amithorakeri/CodeigniterRESTAPI

Open more actions menu

Repository files navigation

Codeigniter REST API in 30 minutes

Support for Restful API using Codeigniter (login, CRUD) in 30 minutes.

Demo

Visit Here

Setup

Download the setup 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

Repository for Codeigniter REST API

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.