FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fayozjon/codeigniter-restserver-api: Codeigniter restserver api. Used with phil sturgeon library for codeigniter. · GitHub

 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Extra - Codeigniter Restserver API

Process:

  • Including CORS
  • In one url line, e.g domain.com/x/dataAll/type/users/format/json
  • Depend on the model

Compatible with :

  • Apache (dav mod need to be enable)
  • nginx

And here's some example handling cors

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Method: POST, GET, OPTIONS, PUT, DELETE');
header("Access-Control-Allow-Headers: X-Custom-Header, X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Authorization");

This is on GitHub so let me know if I've forked it somewhere.

Stuff used to make this:

About

Codeigniter restserver api. Used with phil sturgeon library for codeigniter.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL