Giter VIP home page Giter VIP logo

ko3-rest's Introduction

KO3-Rest

Rest Module for Kohana Framework Version 3.2+

Dependencies

  1. No dependencies

Configuration

###sign_request (bool)

Whether or not to attempt to validate incoming request signatures and append signature to outgoing requests.

Default: TRUE

###signature (Array)

Holds all config information used to compute signatures.

  • timestamp (string)

    • Index in incoming data and outgoing data to use for timestamp verification.
    • Default: timestamp
  • public_key (string)

    • Index in incoming data and outgoing data to use for public_key verification.
    • Default: public_key
  • signature (string)

    • Index in incoming data and outgoing data to use for signature verification.
    • Default: signature
  • replaytimeout (int)

    • Time in seconds that a request must be made in, after creating a signature. This should allow for a small fluctuation in time between client and server.
    • Default: 60
  • salt (string)

    • What salt to use for the PHP function mcrypt.
    • Default: $2a$10$ # Blowfish @ 10 Rounds No Extra Salt

###debug (int)

At what Kohana evnironment level should the module start outputting debug information.

class Kohana_Core {
    // Common environment type constants for consistency and convenience
   const PRODUCTION  = 10;
	const STAGING     = 20;
	const TESTING     = 30;
	const DEVELOPMENT = 40;
}

Default: 40

###profile (bool)

If set to TRUE will add benchmarks to Kohana profiler.

Default: FALSE

Initializing Library

$Rest = Rest::instance('default');

Receiving Request

try
{
  $Rest->process();
}
catch (Rest_Exception $e)
{
  $Rest->respond($e->code, array('message', $e->message));
}

Authentication

Send Response

License

This is licensed under the same license as Kohana http://kohanaframework.org/license This project is not endorsed by the Kohana Framework project.

ko3-rest's People

Contributors

nichcurtis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.