Skip to content

lahirupathirana/codeigniter-rest-api

 
 

Repository files navigation

codeigniter-rest-api

PHP codeigniter rest api

Setup

  1. Step One
  • Copy "REST_Controller.php" and "Format.php" to "\application\libraries" Folder
  • Replace your "language" Folder
  • Copy "API" Folder into "controllers"
  1. Step Two
  • Open Postmen
  • Try Get Request "index.php/api/example/users"
"[
  {
      "id": 1,
      "name": "John",
      "email": "[email protected]",
      "fact": "Loves coding"
  },
  {
      "id": 2,
      "name": "Jim",
      "email": "[email protected]",
      "fact": "Developed on CodeIgniter"
  },
  {
      "id": 3,
      "name": "Jane",
      "email": "[email protected]",
      "fact": "Lives in the USA",
      "hobbies": [
          "guitar",
          "cycling"
      ]
  }
]

Enjoy !!!

About

PHP codeigniter rest api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 80.9%
  • PHP 18.0%
  • Other 1.1%