NAME

OpenResty::Spec::REST - OpenResty REST Service Specification [draft]

AUTHOR

Agent Zhang (agentzh) <agentzh@yahoo.cn>

VERSION

CREATED: Nov 19, 2007
LAST MODIFIED: Feb 28, 2008
VERSION: 1.00

LICENSE

Copyright (c) 2007, 2008 Yahoo! China, Alibaba Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
Texts. A copy of the license can be found at
http://www.gnu.org/licenses/fdl.html

DESCRIPTION

This document defines the REST API for the OpenResty protocol, an web service interface to relational databases.

Login

Anonymous login

Login by password

Per-request-login

Login by captchas

Models

Operations on the model list

Operations on a model

Operations on a model column

Operations on model rows

Views

Operations on the view list

Operations on a view

Operations on a view param

Invoking a view

Actions

Operations on the action list

Operations on an action

Operations on an action param

Invoking an action

Roles

Roles are first-order objects in OpenResty, just as models, views, and actions. Roles have very similar interface to models, in particular. You'll notice the strong parallels between these two.

Operations on the role list

Read all the existing roles

GET /=/role

The server returns a list of hashes for all the roles available in the account. Each hash corresponds to a role, containing the fields src, name, and description. A sample response is given below:

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.