Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
damiththiwanka authored Aug 8, 2018
1 parent 7d54e92 commit 9ca8f34
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,39 @@
# 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"

2. Step Two
* Open Postmen
* Try Get Request "index.php/api/example/users"
```JSON
"[
{
"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 !!!

0 comments on commit 9ca8f34

Please sign in to comment.