Giter VIP home page Giter VIP logo

codeigniter-restserver's Introduction

CodeIgniter-RestServer

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

Sponsored by: Coding Futures

Requirements

  1. PHP 5.2+
  2. CodeIgniter 2.0.3 to 2.1-dev (for 1.7.x support download v2.2 from Downloads tab)

Usage

Coming soon. Take a look at application/controllers/api/example.php for hints until the default controller demo is built and ready.

I haven't got around to writing any documentation specifically for this project but you can read my NetTuts article which covers it's usage along with the REST Client lib.

NetTuts: Working with RESTful Services in CodeIgniter

Change Log

2.5

  • Instead of just seeing item, item, item, the singular version of the basenode will be used if possible. Example.
  • Re-factored to use the Format library, which will soon be merged with CodeIgniter.
  • Fixed Limit bug (limit of 5 would allow 6 requests).
  • Added logging for invalid API key requests.
  • Changed serialize to serialized.
  • Changed all visibility 'private' to 'protected'.
  • MIME's with character encodings on the end will now work.
  • Fixed PUT arguments. Once again just sending a body query string works. Example
  • Fixed up all .foo extensions to work when no get arguments provided, and moved .html to Format library.
  • Updated key.php example to use config_item('rest_keys_table') instead of hardcoded 'keys' table name.
  • Updated REST_Controller to use config_item('rest_limits_table') instead of hardcoded 'limits'.

2.4

  • Added support for UTF-8 characters in XML.
  • Added JSONP as a return type.
  • Loaded the Security lib before use in case it is not loaded in the application.
  • Emulate the Request method for MooTools support.
  • Upgraded everything to use CodeIgniter Reactor 2.0.0.
  • Added the ability to set or override the Auth type per controller / method.
  • Adding ability to only accept AJAX requests.

2.3

  • Upgraded to CodeIgniter 2.0 and stopped supporting CodeIgniter 1.7.2.
  • After $this->response() is called the controller will stop processing.

2.2

  • Added config options to set table names for keys, limits and logs.
  • FALSE values were coming out as empty strings in xml or rawxml mode, now they will be 0/1.
  • key => FALSE can now be used to override the keys_enabled option for a specific method, and level is now optional. If no level is set it will assume the method has a level of 0.
  • Fixed issue where calls to ->get('foo') would error is foo was not set. Reported by Paul Barto.

Donations

If my REST Server has helped you out, or you'd like me to do some custom work on it, please sponsor me so I can keep working on this and other CodeIgniter projects for you all.

codeigniter-restserver's People

Contributors

absfarah avatar brianewing avatar dfreerksen avatar erkattak avatar fborraccetti avatar ggoforth avatar hasokeric avatar jerel avatar juanatgmo avatar mileswebdesign avatar philonl avatar rhbecker avatar simontech avatar sskylar avatar zoster avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.