https://github.com/metallurgical/codeigniter-restserver-api
Codeigniter restserver api. Used with phil sturgeon library for codeigniter.
https://github.com/metallurgical/codeigniter-restserver-api
codeigniter-restserver-api php rest-api rest-server restful
Last synced: 3 months ago
JSON representation
Codeigniter restserver api. Used with phil sturgeon library for codeigniter.
- Host: GitHub
- URL: https://github.com/metallurgical/codeigniter-restserver-api
- Owner: metallurgical
- Created: 2015-01-19T15:04:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T09:46:52.000Z (over 9 years ago)
- Last Synced: 2024-03-14T22:37:03.424Z (almost 2 years ago)
- Topics: codeigniter-restserver-api, php, rest-api, rest-server, restful
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```php
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](https://github.com/metallurgical/codeigniter-restserver-api) so let me know if I've forked it somewhere.
### Stuff used to make this:
* [codeigniter](http://www.codeigniter.com/) PHP Framework
* [nginx](http://nginx.org/) Web Server
* [apache](http://www.apache.org/) Web Server