An open API service indexing awesome lists of open source software.

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.

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